boofcv.abst.feature.detect.interest
Class GeneralToInterestPoint<T extends ImageGray,D extends ImageGray>
- java.lang.Object
-
- boofcv.alg.feature.detect.interest.EasyGeneralFeatureDetector<T,D>
-
- boofcv.abst.feature.detect.interest.GeneralToInterestPoint<T,D>
-
- Type Parameters:
T- Input image type.D- Image derivative type.
- All Implemented Interfaces:
- FoundPointSO, InterestPointDetector<T>
public class GeneralToInterestPoint<T extends ImageGray,D extends ImageGray> extends EasyGeneralFeatureDetector<T,D> implements InterestPointDetector<T>
Wrapper aroundGeneralFeatureDetectorto make it compatible withInterestPointDetector.
-
-
Constructor Summary
Constructors Constructor and Description GeneralToInterestPoint(GeneralFeatureDetector<T,D> detector, double radius, java.lang.Class<T> imageType, java.lang.Class<D> derivType)GeneralToInterestPoint(GeneralFeatureDetector<T,D> detector, ImageGradient<T,D> gradient, ImageHessian<D> hessian, double radius, java.lang.Class<D> derivType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voiddetect(T input)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-
Methods inherited from class boofcv.alg.feature.detect.interest.EasyGeneralFeatureDetector
detect, getDetector, getMaximums, getMinimums
-
-
-
-
Constructor Detail
-
GeneralToInterestPoint
public GeneralToInterestPoint(GeneralFeatureDetector<T,D> detector, double radius, java.lang.Class<T> imageType, java.lang.Class<D> derivType)
-
GeneralToInterestPoint
public GeneralToInterestPoint(GeneralFeatureDetector<T,D> detector, ImageGradient<T,D> gradient, ImageHessian<D> hessian, double radius, java.lang.Class<D> derivType)
-
-
Method Detail
-
detect
public void detect(T input)
Description copied from interface:InterestPointDetectorDetects interest points inside the provided image.- Specified by:
detectin interfaceInterestPointDetector<T extends ImageGray>- Parameters:
input- 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 ImageGray>- 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 ImageGray>- Returns:
- true if it estimates the orientation
-
-
DataMelt 3.0 © DataMelt by jWork.ORG