View Source Evision.BOWImgDescriptorExtractor (Evision v0.1.13)
Link to this section Summary
Types
Type that represents an Evision.BOWImgDescriptorExtractor
struct.
Functions
The constructor.
Positional Arguments
- image:
Evision.Mat
- keypoints:
[Evision.KeyPoint]
Return
imgDescriptor:
Evision.Mat
.
Positional Arguments
- image:
Evision.Mat
- keypoints:
[Evision.KeyPoint]
Return
imgDescriptor:
Evision.Mat
.
Returns an image descriptor size if the vocabulary is set. Otherwise, it returns 0.
Returns an image descriptor type.
Returns the set vocabulary.
Sets a visual vocabulary.
Link to this section Types
@type t() :: %Evision.BOWImgDescriptorExtractor{ref: reference()}
Type that represents an Evision.BOWImgDescriptorExtractor
struct.
ref.
reference()
The underlying erlang resource variable.
Link to this section Functions
@spec bowImgDescriptorExtractor(reference() | term(), Evision.DescriptorMatcher.t()) :: t() | {:error, String.t()}
The constructor.
Positional Arguments
dextractor:
Ptr<DescriptorExtractor>
.Descriptor extractor that is used to compute descriptors for an input image and its keypoints.
dmatcher:
Evision.DescriptorMatcher
.Descriptor matcher that is used to find the nearest word of the trained vocabulary for each keypoint descriptor of the image.
Return
Python prototype (for reference):
BOWImgDescriptorExtractor(dextractor, dmatcher) -> <BOWImgDescriptorExtractor object>
@spec compute(t(), Evision.Mat.maybe_mat_in(), [Evision.KeyPoint.t()]) :: Evision.Mat.t() | {:error, String.t()}
Positional Arguments
- image:
Evision.Mat
- keypoints:
[Evision.KeyPoint]
Return
imgDescriptor:
Evision.Mat
.Computed output image descriptor.
Has overloading in C++
Python prototype (for reference):
compute(image, keypoints[, imgDescriptor]) -> imgDescriptor
@spec compute( t(), Evision.Mat.maybe_mat_in(), [Evision.KeyPoint.t()], [{atom(), term()}, ...] | nil ) :: Evision.Mat.t() | {:error, String.t()}
Positional Arguments
- image:
Evision.Mat
- keypoints:
[Evision.KeyPoint]
Return
imgDescriptor:
Evision.Mat
.Computed output image descriptor.
Has overloading in C++
Python prototype (for reference):
compute(image, keypoints[, imgDescriptor]) -> imgDescriptor
Returns an image descriptor size if the vocabulary is set. Otherwise, it returns 0.
Return
- retval:
int
Python prototype (for reference):
descriptorSize() -> retval
Returns an image descriptor type.
Return
- retval:
int
Python prototype (for reference):
descriptorType() -> retval
@spec getVocabulary(t()) :: Evision.Mat.t() | {:error, String.t()}
Returns the set vocabulary.
Return
- retval:
Evision.Mat
Python prototype (for reference):
getVocabulary() -> retval
@spec setVocabulary(t(), Evision.Mat.maybe_mat_in()) :: :ok | {:error, String.t()}
Sets a visual vocabulary.
Positional Arguments
vocabulary:
Evision.Mat
.Vocabulary (can be trained using the inheritor of BOWTrainer ). Each row of the vocabulary is a visual word (cluster center).
Python prototype (for reference):
setVocabulary(vocabulary) -> None