boofcv.abst.feature.detdesc
Class SurfPlanar_to_DetectDescribePoint<T extends ImageGray,II extends ImageGray>
- java.lang.Object
-
- boofcv.abst.feature.detdesc.SurfPlanar_to_DetectDescribePoint<T,II>
-
- Type Parameters:
T- Image band typeII- Integral image type
- All Implemented Interfaces:
- DescriptorInfo<BrightFeature>, DetectDescribePoint<Planar<T>,BrightFeature>, FoundPointSO, InterestPointDetector<Planar<T>>
public class SurfPlanar_to_DetectDescribePoint<T extends ImageGray,II extends ImageGray> extends java.lang.Object implements DetectDescribePoint<Planar<T>,BrightFeature>
Wrapper aroundDetectDescribeSurfPlanarforDetectDescribePoint.
-
-
Constructor Summary
Constructors Constructor and Description SurfPlanar_to_DetectDescribePoint(DetectDescribeSurfPlanar<II> alg, java.lang.Class<T> imageType, java.lang.Class<II> integralType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description BrightFeaturecreateDescription()Creates new description instance which can be processed by this classvoiddetect(Planar<T> input)Detects interest points inside the provided image.BrightFeaturegetDescription(int index)Returns the feature descriptor at the specified index.java.lang.Class<BrightFeature>getDescriptionType()The type of region descriptor generatedPoint2D_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
-
SurfPlanar_to_DetectDescribePoint
public SurfPlanar_to_DetectDescribePoint(DetectDescribeSurfPlanar<II> alg, java.lang.Class<T> imageType, java.lang.Class<II> integralType)
-
-
Method Detail
-
detect
public void detect(Planar<T> input)
Description copied from interface:InterestPointDetectorDetects interest points inside the provided image.- Specified by:
detectin interfaceInterestPointDetector<Planar<T extends ImageGray>>- Parameters:
input- Input features are detected inside of.
-
hasScale
public boolean hasScale()
Description copied from interface:InterestPointDetectorDoes the interest point detector have scale information- Specified by:
hasScalein interfaceInterestPointDetector<Planar<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<Planar<T extends ImageGray>>- Returns:
- true if it estimates the orientation
-
getDescription
public BrightFeature getDescription(int index)
Description copied from interface:DetectDescribePointReturns the feature descriptor at the specified index.
WARNING: The returned data structure is recycled each time
InterestPointDetector.detect(boofcv.struct.image.ImageBase)is called. Create a copy if this is a problem.- Specified by:
getDescriptionin interfaceDetectDescribePoint<Planar<T extends ImageGray>,BrightFeature>- Parameters:
index- Which feature- Returns:
- Feature descriptor
-
createDescription
public BrightFeature createDescription()
Description copied from interface:DescriptorInfoCreates new description instance which can be processed by this class- Specified by:
createDescriptionin interfaceDescriptorInfo<BrightFeature>- Returns:
- New descriptor
-
getDescriptionType
public java.lang.Class<BrightFeature> getDescriptionType()
Description copied from interface:DescriptorInfoThe type of region descriptor generated- Specified by:
getDescriptionTypein interfaceDescriptorInfo<BrightFeature>- Returns:
- Returns the descriptor type.
-
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.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG