Package boofcv.abst.feature.detdesc
Class Surf_DetectDescribe<T extends ImageGray<T>,II extends ImageGray<II>>
java.lang.Object
boofcv.abst.feature.detdesc.Surf_DetectDescribe<T,II>
- Type Parameters:
T- Input image typeII- Integral image type
- All Implemented Interfaces:
DescriptorInfo<TupleDesc_F64>,DetectDescribePoint<T,,TupleDesc_F64> FeatureSets,FoundPointSO,InterestPointDetector<T>
- Direct Known Subclasses:
Surf_DetectDescribe_MT
public class Surf_DetectDescribe<T extends ImageGray<T>,II extends ImageGray<II>>
extends Object
implements DetectDescribePoint<T,TupleDesc_F64>
Wrapper around SURF algorithms for
DetectDescribePoint.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected DescribePointSurf<II>protected FastHessianFeatureDetector<II>protected DogArray_F64protected DogArray<TupleDesc_F64>protected List<ScalePoint>protected IIprotected OrientationIntegral<II> -
Constructor Summary
ConstructorsConstructorDescriptionSurf_DetectDescribe(FastHessianFeatureDetector<II> detector, OrientationIntegral<II> orientation, DescribePointSurf<II> describe, Class<T> imageType) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidCreates new description instance which can be processed by this classvoidDetects interest points inside the provided image.getDescription(int index) Returns the feature descriptor at the specified index.The type of region descriptor generatedGet the expected input image typegetLocation(int featureIndex) The center location of the feature inside the image.intReturns the number of interest points found.intThe number of feature sets.doublegetOrientation(int featureIndex) Returns the features found orientation.doublegetRadius(int featureIndex) Returns the detected object's circular radiusintgetSet(int index) Returns the set that a feature belongs inbooleanIf the interest point detector estimates the feature's orientationbooleanhasScale()Does the interest point detector have scale information.
-
Field Details
-
detector
-
orientation
-
describe
-
ii
-
features
-
foundPoints
-
featureAngles
-
-
Constructor Details
-
Surf_DetectDescribe
public Surf_DetectDescribe(FastHessianFeatureDetector<II> detector, OrientationIntegral<II> orientation, DescribePointSurf<II> describe, Class<T> imageType)
-
-
Method Details
-
createDescription
Description copied from interface:DescriptorInfoCreates new description instance which can be processed by this class- Specified by:
createDescriptionin interfaceDescriptorInfo<T extends ImageGray<T>>- Returns:
- New descriptor
-
getDescription
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<T extends ImageGray<T>,II extends ImageGray<II>> - Parameters:
index- Which feature- Returns:
- Feature descriptor
-
getInputType
Description copied from interface:InterestPointDetectorGet the expected input image type- Specified by:
getInputTypein interfaceInterestPointDetector<T extends ImageGray<T>>
-
getDescriptionType
Description copied from interface:DescriptorInfoThe type of region descriptor generated- Specified by:
getDescriptionTypein interfaceDescriptorInfo<T extends ImageGray<T>>- Returns:
- Returns the descriptor type.
-
detect
Description copied from interface:InterestPointDetectorDetects interest points inside the provided image.- Specified by:
detectin interfaceInterestPointDetector<T extends ImageGray<T>>- Parameters:
input- Input features are detected inside of.
-
getNumberOfSets
public int getNumberOfSets()Description copied from interface:FeatureSetsThe number of feature sets.- Specified by:
getNumberOfSetsin interfaceFeatureSets- Returns:
- number of feature sets
-
getSet
public int getSet(int index) Description copied from interface:FeatureSetsReturns the set that a feature belongs in- Specified by:
getSetin interfaceFeatureSets- Parameters:
index- Which feature
-
computeDescriptors
protected void computeDescriptors() -
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
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. This made available through the radius.- Specified by:
hasScalein interfaceInterestPointDetector<T extends ImageGray<T>>- 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<T>>- Returns:
- true if it estimates the orientation
-