Package boofcv.abst.feature.describe
Class DescribeBriefSO_RadiusAngle<T extends ImageGray<T>>
java.lang.Object
boofcv.abst.feature.describe.DescribeBriefSO_RadiusAngle<T>
- All Implemented Interfaces:
DescribePointRadiusAngle<T,
,TupleDesc_B> DescriptorInfo<TupleDesc_B>
public class DescribeBriefSO_RadiusAngle<T extends ImageGray<T>>
extends Object
implements DescribePointRadiusAngle<T,TupleDesc_B>
Wrapper around
DescribePointBriefSO
for DescribePointRadiusAngle
-
Constructor Summary
ConstructorDescriptionDescribeBriefSO_RadiusAngle
(DescribePointBriefSO<T> alg, Class<T> imageType) -
Method Summary
Modifier and TypeMethodDescriptionCreates new description instance which can be processed by this classdouble
Returns 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 processboolean
True if the descriptor uses orientation information.boolean
If size information is used when computing the descriptor.boolean
process
(double x, double y, double orientation, double radius, TupleDesc_B storage) Extract a description of the local image at the given point, scale, and orientation.void
Specified the image which is to be processed.
-
Constructor Details
-
DescribeBriefSO_RadiusAngle
-
-
Method Details
-
createDescription
Description copied from interface:DescriptorInfo
Creates new description instance which can be processed by this class- Specified by:
createDescription
in interfaceDescriptorInfo<T extends ImageGray<T>>
- Returns:
- New descriptor
-
setImage
Description copied from interface:DescribePointRadiusAngle
Specified the image which is to be processed.- Specified by:
setImage
in interfaceDescribePointRadiusAngle<T extends ImageGray<T>,
TupleDesc_B> - Parameters:
image
- The image which contains the features.
-
process
Description copied from interface:DescribePointRadiusAngle
Extract 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:
process
in interfaceDescribePointRadiusAngle<T extends ImageGray<T>,
TupleDesc_B> - 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.storage
- (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:DescribePointRadiusAngle
If size information is used when computing the descriptor.- Specified by:
isScalable
in interfaceDescribePointRadiusAngle<T extends ImageGray<T>,
TupleDesc_B> - Returns:
- true is the radius is used when computing the descriptor or false if not
-
isOriented
public boolean isOriented()Description copied from interface:DescribePointRadiusAngle
True if the descriptor uses orientation information.- Specified by:
isOriented
in interfaceDescribePointRadiusAngle<T extends ImageGray<T>,
TupleDesc_B> - Returns:
- if orientation needs to be provided or not
-
getImageType
Description copied from interface:DescribePointRadiusAngle
Description of the type of image it can process- Specified by:
getImageType
in interfaceDescribePointRadiusAngle<T extends ImageGray<T>,
TupleDesc_B> - Returns:
- ImageDataType
-
getDescriptionType
Description copied from interface:DescriptorInfo
The type of region descriptor generated- Specified by:
getDescriptionType
in interfaceDescriptorInfo<T extends ImageGray<T>>
- Returns:
- Returns the descriptor type.
-
getCanonicalWidth
public double getCanonicalWidth()Description copied from interface:DescribePointRadiusAngle
Returns 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:
getCanonicalWidth
in interfaceDescribePointRadiusAngle<T extends ImageGray<T>,
TupleDesc_B> - Returns:
- width of descriptor at a scale of one
-