Package org.opencv.xfeatures2d
Class FREAK
java.lang.Object
org.opencv.core.Algorithm
org.opencv.features2d.Feature2D
org.opencv.xfeatures2d.FREAK
Class implementing the FREAK (*Fast Retina Keypoint*) keypoint descriptor, described in CITE: AOV12 .
The algorithm propose a novel keypoint descriptor inspired by the human visual system and more
precisely the retina, coined Fast Retina Key- point (FREAK). A cascade of binary strings is
computed by efficiently comparing image intensities over a retinal sampling pattern. FREAKs are in
general faster to compute with lower memory load and also more robust than SIFT, SURF or BRISK.
They are competitive alternatives to existing keypoints in particular for embedded applications.
Note:
- An example on how to use the FREAK descriptor can be found at opencv_source_code/samples/cpp/freak_demo.cpp
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic FREAK
__fromPtr__
(long addr) static FREAK
create()
static FREAK
create
(boolean orientationNormalized) static FREAK
create
(boolean orientationNormalized, boolean scaleNormalized) static FREAK
create
(boolean orientationNormalized, boolean scaleNormalized, float patternScale) static FREAK
create
(boolean orientationNormalized, boolean scaleNormalized, float patternScale, int nOctaves) static FREAK
create
(boolean orientationNormalized, boolean scaleNormalized, float patternScale, int nOctaves, MatOfInt selectedPairs) protected void
finalize()
Returns the algorithm string identifier.int
boolean
double
boolean
void
setNOctaves
(int nOctaves) void
setOrientationNormalized
(boolean orientationNormalized) void
setPatternScale
(double patternScale) void
setScaleNormalized
(boolean scaleNormalized) Methods inherited from class org.opencv.features2d.Feature2D
compute, compute, defaultNorm, descriptorSize, descriptorType, detect, detect, detect, detect, detectAndCompute, detectAndCompute, empty, read, write
Methods inherited from class org.opencv.core.Algorithm
clear, getNativeObjAddr, save
-
Constructor Details
-
FREAK
protected FREAK(long addr)
-
-
Method Details
-
__fromPtr__
-
create
public static FREAK create(boolean orientationNormalized, boolean scaleNormalized, float patternScale, int nOctaves, MatOfInt selectedPairs) - Parameters:
orientationNormalized
- Enable orientation normalization.scaleNormalized
- Enable scale normalization.patternScale
- Scaling of the description pattern.nOctaves
- Number of octaves covered by the detected keypoints.selectedPairs
- (Optional) user defined selected pairs indexes,- Returns:
- automatically generated
-
create
public static FREAK create(boolean orientationNormalized, boolean scaleNormalized, float patternScale, int nOctaves) - Parameters:
orientationNormalized
- Enable orientation normalization.scaleNormalized
- Enable scale normalization.patternScale
- Scaling of the description pattern.nOctaves
- Number of octaves covered by the detected keypoints.- Returns:
- automatically generated
-
create
public static FREAK create(boolean orientationNormalized, boolean scaleNormalized, float patternScale) - Parameters:
orientationNormalized
- Enable orientation normalization.scaleNormalized
- Enable scale normalization.patternScale
- Scaling of the description pattern.- Returns:
- automatically generated
-
create
- Parameters:
orientationNormalized
- Enable orientation normalization.scaleNormalized
- Enable scale normalization.- Returns:
- automatically generated
-
create
- Parameters:
orientationNormalized
- Enable orientation normalization.- Returns:
- automatically generated
-
create
- Returns:
- automatically generated
-
setOrientationNormalized
public void setOrientationNormalized(boolean orientationNormalized) -
getOrientationNormalized
public boolean getOrientationNormalized() -
setScaleNormalized
public void setScaleNormalized(boolean scaleNormalized) -
getScaleNormalized
public boolean getScaleNormalized() -
setPatternScale
public void setPatternScale(double patternScale) -
getPatternScale
public double getPatternScale() -
setNOctaves
public void setNOctaves(int nOctaves) -
getNOctaves
public int getNOctaves() -
getDefaultName
Description copied from class:Algorithm
Returns 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:
getDefaultName
in classFeature2D
- Returns:
- automatically generated
-
finalize
-