Package boofcv.abst.feature.describe
Class DescribeSift_RadiusAngle<T extends ImageGray<T>>
java.lang.Object
boofcv.abst.feature.describe.DescribeSift_RadiusAngle<T>
- All Implemented Interfaces:
DescribePointRadiusAngle<T,,TupleDesc_F64> DescriptorInfo<TupleDesc_F64>
public class DescribeSift_RadiusAngle<T extends ImageGray<T>>
extends Object
implements DescribePointRadiusAngle<T,TupleDesc_F64>
Allows you to use SIFT features independent of the SIFT detector. A SIFT scale-space is computed with all octaves
and most of the scales saved. When a few feature is requested it looks up the closest scale image and uses
that as the input image.
-
Constructor Summary
ConstructorsConstructorDescriptionDescribeSift_RadiusAngle(SiftScaleSpace scaleSpace, DescribePointSift<GrayF32> describe, Class<T> imageType) -
Method Summary
Modifier and TypeMethodDescriptionCreates new description instance which can be processed by this classdoubleReturns the width of the square (or approximation of) sample region at a scale of one.The type of region descriptor generatedDescription of the type of image it can processbooleanTrue if the descriptor uses orientation information.booleanIf size information is used when computing the descriptor.booleanprocess(double x, double y, double orientation, double radius, TupleDesc_F64 description) Extract a description of the local image at the given point, scale, and orientation.voidSpecified the image which is to be processed.
-
Constructor Details
-
DescribeSift_RadiusAngle
public DescribeSift_RadiusAngle(SiftScaleSpace scaleSpace, DescribePointSift<GrayF32> describe, Class<T> imageType)
-
-
Method Details
-
setImage
Description copied from interface:DescribePointRadiusAngleSpecified the image which is to be processed.- Specified by:
setImagein interfaceDescribePointRadiusAngle<T extends ImageGray<T>,TupleDesc_F64> - Parameters:
image- The image which contains the features.
-
process
public boolean process(double x, double y, double orientation, double radius, TupleDesc_F64 description) Description copied from interface:DescribePointRadiusAngleExtract a description of the local image at the given point, scale, and orientation.
WARNING: Check the returned value to make sure a description was actually computed. Some implementations might now allow features to extend outside the image border and will return false.
- Specified by:
processin interfaceDescribePointRadiusAngle<T extends ImageGray<T>,TupleDesc_F64> - Parameters:
x- Coordinate of the point.y- Coordinate of the point.orientation- Direction the feature is pointing at in radians. 0 = x-axis PI/2 = y-axisradius- Radius of the detected object in pixels.description- (output) Storage for extracted feature. UseDescriptorInfo.createDescription()to create descriptor.- Returns:
- true if a descriptor can be computed or false if not.
-
isScalable
public boolean isScalable()Description copied from interface:DescribePointRadiusAngleIf size information is used when computing the descriptor.- Specified by:
isScalablein interfaceDescribePointRadiusAngle<T extends ImageGray<T>,TupleDesc_F64> - Returns:
- true is the radius is used when computing the descriptor or false if not
-
isOriented
public boolean isOriented()Description copied from interface:DescribePointRadiusAngleTrue if the descriptor uses orientation information.- Specified by:
isOrientedin interfaceDescribePointRadiusAngle<T extends ImageGray<T>,TupleDesc_F64> - Returns:
- if orientation needs to be provided or not
-
getImageType
Description copied from interface:DescribePointRadiusAngleDescription of the type of image it can process- Specified by:
getImageTypein interfaceDescribePointRadiusAngle<T extends ImageGray<T>,TupleDesc_F64> - Returns:
- ImageDataType
-
getCanonicalWidth
public double getCanonicalWidth()Description copied from interface:DescribePointRadiusAngleReturns the width of the square (or approximation of) sample region at a scale of one. When multiplied by the scale, pixels outside of the square region should not influence the descriptor's value.- Specified by:
getCanonicalWidthin interfaceDescribePointRadiusAngle<T extends ImageGray<T>,TupleDesc_F64> - Returns:
- width of descriptor at a scale of one
-
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
-
getDescriptionType
Description copied from interface:DescriptorInfoThe type of region descriptor generated- Specified by:
getDescriptionTypein interfaceDescriptorInfo<T extends ImageGray<T>>- Returns:
- Returns the descriptor type.
-