View Source Evision.Detail.FeaturesMatcher (Evision v0.2.7)

Summary

Types

t()

Type that represents an Detail.FeaturesMatcher struct.

Functions

Performs images matching.

Performs images matching.

Frees unused memory allocated before if there is any.

Types

@type t() :: %Evision.Detail.FeaturesMatcher{ref: reference()}

Type that represents an Detail.FeaturesMatcher struct.

  • ref. reference()

    The underlying erlang resource variable.

Functions

@spec apply2(Keyword.t()) :: any() | {:error, String.t()}
@spec apply2(t(), [Evision.Detail.ImageFeatures.t()]) ::
  [Evision.Detail.MatchesInfo.t()] | {:error, String.t()}

Performs images matching.

Positional Arguments
  • self: Evision.Detail.FeaturesMatcher.t()

  • features: [Evision.Detail.ImageFeatures].

    Features of the source images

Keyword Arguments
  • mask: Evision.Mat.

    Mask indicating which image pairs must be matched

Return
  • pairwise_matches: [Evision.Detail.MatchesInfo].

    Found pairwise matches

The function is parallelized with the TBB library. @sa detail::MatchesInfo

Python prototype (for reference only):

apply2(features[, mask]) -> pairwise_matches
Link to this function

apply2(self, features, opts)

View Source
@spec apply2(t(), [Evision.Detail.ImageFeatures.t()], [{:mask, term()}] | nil) ::
  [Evision.Detail.MatchesInfo.t()] | {:error, String.t()}

Performs images matching.

Positional Arguments
  • self: Evision.Detail.FeaturesMatcher.t()

  • features: [Evision.Detail.ImageFeatures].

    Features of the source images

Keyword Arguments
  • mask: Evision.Mat.

    Mask indicating which image pairs must be matched

Return
  • pairwise_matches: [Evision.Detail.MatchesInfo].

    Found pairwise matches

The function is parallelized with the TBB library. @sa detail::MatchesInfo

Python prototype (for reference only):

apply2(features[, mask]) -> pairwise_matches
@spec apply(Keyword.t()) :: any() | {:error, String.t()}
Link to this function

apply(self, features1, features2)

View Source

apply

Positional Arguments
Return
  • matches_info: Evision.Detail.MatchesInfo.t().

    Found matches

Has overloading in C++

Python prototype (for reference only):

apply(features1, features2) -> matches_info
Link to this function

collectGarbage(named_args)

View Source
@spec collectGarbage(Keyword.t()) :: any() | {:error, String.t()}
@spec collectGarbage(t()) :: t() | {:error, String.t()}

Frees unused memory allocated before if there is any.

Positional Arguments
  • self: Evision.Detail.FeaturesMatcher.t()

Python prototype (for reference only):

collectGarbage() -> None
Link to this function

isThreadSafe(named_args)

View Source
@spec isThreadSafe(Keyword.t()) :: any() | {:error, String.t()}
@spec isThreadSafe(t()) :: boolean() | {:error, String.t()}

isThreadSafe

Positional Arguments
  • self: Evision.Detail.FeaturesMatcher.t()
Return
  • retval: bool

@return True, if it's possible to use the same matcher instance in parallel, false otherwise

Python prototype (for reference only):

isThreadSafe() -> retval