Package org.opencv.xfeatures2d
Class VGG
- java.lang.Object
- 
- org.opencv.core.Algorithm
- 
- org.opencv.features2d.Feature2D
- 
- org.opencv.xfeatures2d.VGG
 
 
 
- 
 public class VGG extends Feature2D Class implementing VGG (Oxford Visual Geometry Group) descriptor trained end to end using "Descriptor Learning Using Convex Optimisation" (DLCO) aparatus described in CITE: Simonyan14. desc type of descriptor to use, VGG::VGG_120 is default (120 dimensions float) Available types are VGG::VGG_120, VGG::VGG_80, VGG::VGG_64, VGG::VGG_48 isigma gaussian kernel value for image blur (default is 1.4f) img_normalize use image sample intensity normalization (enabled by default) use_orientation sample patterns using keypoints orientation, enabled by default scale_factor adjust the sampling window of detected keypoints to 64.0f (VGG sampling window) 6.25f is default and fits for KAZE, SURF detected keypoints window ratio 6.75f should be the scale for SIFT detected keypoints window ratio 5.00f should be the scale for AKAZE, MSD, AGAST, FAST, BRISK keypoints window ratio 0.75f should be the scale for ORB keypoints ratio dsc_normalize clamp descriptors to 255 and convert to uchar CV_8UC1 (disabled by default)
- 
- 
Constructor SummaryConstructors Modifier Constructor Description protectedVGG(long addr)
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VGG__fromPtr__(long addr)static VGGcreate()static VGGcreate(int desc)static VGGcreate(int desc, float isigma)static VGGcreate(int desc, float isigma, boolean img_normalize)static VGGcreate(int desc, float isigma, boolean img_normalize, boolean use_scale_orientation)static VGGcreate(int desc, float isigma, boolean img_normalize, boolean use_scale_orientation, float scale_factor)static VGGcreate(int desc, float isigma, boolean img_normalize, boolean use_scale_orientation, float scale_factor, boolean dsc_normalize)protected voidfinalize()java.lang.StringgetDefaultName()Returns the algorithm string identifier.floatgetScaleFactor()floatgetSigma()booleangetUseNormalizeDescriptor()booleangetUseNormalizeImage()booleangetUseScaleOrientation()voidsetScaleFactor(float scale_factor)voidsetSigma(float isigma)voidsetUseNormalizeDescriptor(boolean dsc_normalize)voidsetUseNormalizeImage(boolean img_normalize)voidsetUseScaleOrientation(boolean use_scale_orientation)- 
Methods inherited from class org.opencv.features2d.Feature2Dcompute, compute, defaultNorm, descriptorSize, descriptorType, detect, detect, detect, detect, detectAndCompute, detectAndCompute, empty, read, write
 - 
Methods inherited from class org.opencv.core.Algorithmclear, getNativeObjAddr, save
 
- 
 
- 
- 
- 
Method Detail- 
__fromPtr__public static VGG __fromPtr__(long addr) 
 - 
createpublic static VGG create(int desc, float isigma, boolean img_normalize, boolean use_scale_orientation, float scale_factor, boolean dsc_normalize) 
 - 
createpublic static VGG create(int desc, float isigma, boolean img_normalize, boolean use_scale_orientation, float scale_factor) 
 - 
createpublic static VGG create(int desc, float isigma, boolean img_normalize, boolean use_scale_orientation) 
 - 
createpublic static VGG create(int desc, float isigma, boolean img_normalize) 
 - 
createpublic static VGG create(int desc, float isigma) 
 - 
createpublic static VGG create(int desc) 
 - 
createpublic static VGG create() 
 - 
getDefaultNamepublic java.lang.String getDefaultName() Description copied from class:AlgorithmReturns the algorithm string identifier. This string is used as top level xml/yml node tag when the object is saved to a file or string.- Overrides:
- getDefaultNamein class- Feature2D
- Returns:
- automatically generated
 
 - 
setSigmapublic void setSigma(float isigma) 
 - 
getSigmapublic float getSigma() 
 - 
setUseNormalizeImagepublic void setUseNormalizeImage(boolean img_normalize) 
 - 
getUseNormalizeImagepublic boolean getUseNormalizeImage() 
 - 
setUseScaleOrientationpublic void setUseScaleOrientation(boolean use_scale_orientation) 
 - 
getUseScaleOrientationpublic boolean getUseScaleOrientation() 
 - 
setScaleFactorpublic void setScaleFactor(float scale_factor) 
 - 
getScaleFactorpublic float getScaleFactor() 
 - 
setUseNormalizeDescriptorpublic void setUseNormalizeDescriptor(boolean dsc_normalize) 
 - 
getUseNormalizeDescriptorpublic boolean getUseNormalizeDescriptor() 
 
- 
 
-