Class FastToInterestPoint<T extends ImageGray<T>>
java.lang.Object
boofcv.abst.feature.detect.interest.FastToInterestPoint<T>
- All Implemented Interfaces:
FeatureSets
,FoundPointSO
,InterestPointDetector<T>
public class FastToInterestPoint<T extends ImageGray<T>>
extends Object
implements InterestPointDetector<T>
Provides a wrapper around a fast corner detector for
InterestPointDetector
no non-maximum suppression will be done-
Field Summary
Modifier and TypeFieldDescriptionint
Maximum number of features it can select per setprotected FastArray<Point2D_I16>
protected FeatureSelectLimit<Point2D_I16>
-
Constructor Summary
ConstructorDescriptionFastToInterestPoint
(FastCornerDetector<T> detector, FeatureSelectLimit<Point2D_I16> selectLimit) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Detects interest points inside the provided image.Get the expected input image typegetLocation
(int featureIndex) The center location of the feature inside the image.int
Returns the number of interest points found.int
The number of feature sets.double
getOrientation
(int featureIndex) Returns the features found orientation.double
getRadius
(int featureIndex) Returns the detected object's circular radiusint
getSet
(int index) Returns the set that a feature belongs inboolean
If the interest point detector estimates the feature's orientationboolean
hasScale()
Does the interest point detector have scale information.
-
Field Details
-
selectLimit
-
selected
-
featureLimitPerSet
public int featureLimitPerSetMaximum number of features it can select per set
-
-
Constructor Details
-
FastToInterestPoint
public FastToInterestPoint(FastCornerDetector<T> detector, FeatureSelectLimit<Point2D_I16> selectLimit)
-
-
Method Details
-
detect
Description copied from interface:InterestPointDetector
Detects interest points inside the provided image.- Specified by:
detect
in interfaceInterestPointDetector<T extends ImageGray<T>>
- Parameters:
input
- Input features are detected inside of.
-
getSet
public int getSet(int index) Description copied from interface:FeatureSets
Returns the set that a feature belongs in- Specified by:
getSet
in interfaceFeatureSets
- Parameters:
index
- Which feature
-
hasScale
public boolean hasScale()Description copied from interface:InterestPointDetector
Does the interest point detector have scale information. This made available through the radius.- Specified by:
hasScale
in interfaceInterestPointDetector<T extends ImageGray<T>>
- Returns:
- true if it has scale information and false otherwise
-
hasOrientation
public boolean hasOrientation()Description copied from interface:InterestPointDetector
If the interest point detector estimates the feature's orientation- Specified by:
hasOrientation
in interfaceInterestPointDetector<T extends ImageGray<T>>
- Returns:
- true if it estimates the orientation
-
getInputType
Description copied from interface:InterestPointDetector
Get the expected input image type- Specified by:
getInputType
in interfaceInterestPointDetector<T extends ImageGray<T>>
-
getNumberOfSets
public int getNumberOfSets()Description copied from interface:FeatureSets
The number of feature sets.- Specified by:
getNumberOfSets
in interfaceFeatureSets
- Returns:
- number of feature sets
-
getNumberOfFeatures
public int getNumberOfFeatures()Description copied from interface:FoundPointSO
Returns the number of interest points found.- Specified by:
getNumberOfFeatures
in interfaceFoundPointSO
- Returns:
- Number of interest points.
-
getLocation
Description copied from interface:FoundPointSO
The center location of the feature inside the image.
WARNING: Do not save the returned reference, copy instead. The returned point can be recycled each time this function is called.
- Specified by:
getLocation
in interfaceFoundPointSO
- Parameters:
featureIndex
- The feature's index.- Returns:
- Location of the feature in image pixels.
-
getRadius
public double getRadius(int featureIndex) Description copied from interface:FoundPointSO
Returns the detected object's circular radius
- Specified by:
getRadius
in interfaceFoundPointSO
- Parameters:
featureIndex
- Feature whose radius is being requested.- Returns:
- Object's radius
-
getOrientation
public double getOrientation(int featureIndex) Description copied from interface:FoundPointSO
Returns the features found orientation.- Specified by:
getOrientation
in interfaceFoundPointSO
- Parameters:
featureIndex
- Feature whose- Returns:
- Orientation in radians.
-