public class BOWImgDescriptorExtractor extends Object
Modifier and Type | Field and Description |
---|---|
protected long |
nativeObj |
Modifier | Constructor and Description |
---|---|
protected |
BOWImgDescriptorExtractor(long addr) |
Modifier and Type | Method and Description |
---|---|
static BOWImgDescriptorExtractor |
__fromPtr__(long addr) |
void |
compute(Mat image,
MatOfKeyPoint keypoints,
Mat imgDescriptor) |
int |
descriptorSize()
Returns an image descriptor size if the vocabulary is set.
|
int |
descriptorType()
Returns an image descriptor type.
|
protected void |
finalize() |
long |
getNativeObjAddr() |
Mat |
getVocabulary()
Returns the set vocabulary.
|
void |
setVocabulary(Mat vocabulary)
Sets a visual vocabulary.
|
public long getNativeObjAddr()
public static BOWImgDescriptorExtractor __fromPtr__(long addr)
public Mat getVocabulary()
public int descriptorSize()
public int descriptorType()
public void compute(Mat image, MatOfKeyPoint keypoints, Mat imgDescriptor)
imgDescriptor
- Computed output image descriptor.
pointIdxsOfClusters[i] are keypoint indices that belong to the i -th cluster (word of vocabulary)
returned if it is non-zero.image
- automatically generatedkeypoints
- automatically generatedpublic void setVocabulary(Mat vocabulary)
vocabulary
- Vocabulary (can be trained using the inheritor of BOWTrainer ). Each row of the
vocabulary is a visual word (cluster center).Generated on Wed Oct 9 2019 23:24:43 UTC / OpenCV 4.1.2