View Source Evision.BOWImgDescriptorExtractor (Evision v0.1.7)

Link to this section Summary

cv

Positional Arguments
Return
Positional Arguments
Return

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 cv

Link to this function

bowImgDescriptorExtractor(dextractor, dmatcher)

View Source

The constructor.

Positional Arguments
  • dextractor: Ptr<DescriptorExtractor>.

    Descriptor extractor that is used to compute descriptors for an input image and its keypoints.

  • dmatcher: Ptr<DescriptorMatcher>.

    Descriptor matcher that is used to find the nearest word of the trained vocabulary for each keypoint descriptor of the image.

Python prototype (for reference):

BOWImgDescriptorExtractor(dextractor, dmatcher) -> <BOWImgDescriptorExtractor object>
Link to this function

compute(self, image, keypoints)

View Source
Positional Arguments
Return
  • imgDescriptor: Evision.Mat.

    Computed output image descriptor.

Has overloading in C++

Python prototype (for reference):

compute(image, keypoints[, imgDescriptor]) -> imgDescriptor
Link to this function

compute(self, image, keypoints, opts)

View Source
Positional Arguments
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.

Python prototype (for reference):

descriptorSize() -> retval

Returns an image descriptor type.

Python prototype (for reference):

descriptorType() -> retval

Returns the set vocabulary.

Python prototype (for reference):

getVocabulary() -> retval
Link to this function

setVocabulary(self, vocabulary)

View Source

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

Link to this section Functions

Link to this function

bowImgDescriptorExtractor!(dextractor, dmatcher)

View Source

Raising version of bowImgDescriptorExtractor/2.

Link to this function

compute!(self, image, keypoints)

View Source

Raising version of compute/3.

Link to this function

compute!(self, image, keypoints, opts)

View Source

Raising version of compute/4.

Raising version of descriptorSize/1.

Raising version of descriptorType/1.

Raising version of getVocabulary/1.

Link to this function

setVocabulary!(self, vocabulary)

View Source

Raising version of setVocabulary/2.