boofcv.abst.feature.detect.interest
Class WrapSiftDetector<T extends ImageBase>
- java.lang.Object
-
- boofcv.abst.feature.detect.interest.WrapSiftDetector<T>
-
- All Implemented Interfaces:
- FoundPointSO, InterestPointDetector<T>
public class WrapSiftDetector<T extends ImageBase> extends java.lang.Object implements InterestPointDetector<T>
Wrapper aroundSiftDetectorforInterestPointDetector.
-
-
Constructor Summary
Constructors Constructor and Description WrapSiftDetector(SiftDetector detector, java.lang.Class<T> inputType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voiddetect(T image)Detects interest points inside the provided image.Point2D_F64getLocation(int featureIndex)The center location of the feature inside the image.intgetNumberOfFeatures()Returns the number of interest points found.doublegetOrientation(int featureIndex)Returns the features found orientation.doublegetRadius(int featureIndex)Returns the detected object's circular radiusbooleanhasOrientation()If the interest point detector estimates the feature's orientationbooleanhasScale()Does the interest point detector have scale information
-
-
-
Constructor Detail
-
WrapSiftDetector
public WrapSiftDetector(SiftDetector detector, java.lang.Class<T> inputType)
-
-
Method Detail
-
detect
public void detect(T image)
Description copied from interface:InterestPointDetectorDetects interest points inside the provided image.- Specified by:
detectin interfaceInterestPointDetector<T extends ImageBase>- Parameters:
image- Input features are detected inside of.
-
getNumberOfFeatures
public int getNumberOfFeatures()
Description copied from interface:FoundPointSOReturns the number of interest points found.- Specified by:
getNumberOfFeaturesin interfaceFoundPointSO- Returns:
- Number of interest points.
-
getLocation
public Point2D_F64 getLocation(int featureIndex)
Description copied from interface:FoundPointSOThe 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:
getLocationin 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:FoundPointSOReturns the detected object's circular radius
- Specified by:
getRadiusin interfaceFoundPointSO- Parameters:
featureIndex- Feature whose radius is being requested.- Returns:
- Object's radius
-
getOrientation
public double getOrientation(int featureIndex)
Description copied from interface:FoundPointSOReturns the features found orientation.- Specified by:
getOrientationin interfaceFoundPointSO- Parameters:
featureIndex- Feature whose- Returns:
- Orientation in radians.
-
hasScale
public boolean hasScale()
Description copied from interface:InterestPointDetectorDoes the interest point detector have scale information- Specified by:
hasScalein interfaceInterestPointDetector<T extends ImageBase>- Returns:
- true if it has scale information and false otherwise
-
hasOrientation
public boolean hasOrientation()
Description copied from interface:InterestPointDetectorIf the interest point detector estimates the feature's orientation- Specified by:
hasOrientationin interfaceInterestPointDetector<T extends ImageBase>- Returns:
- true if it estimates the orientation
-
-
DataMelt 3.0 © DataMelt by jWork.ORG