Package boofcv.abst.feature.describe
Class DescribeSurf_Point<T extends ImageGray<T>,II extends ImageGray<II>>
java.lang.Object
boofcv.abst.feature.describe.DescribeSurf_Point<T,II>
- All Implemented Interfaces:
DescribePoint<T,
,TupleDesc_F64> DescriptorInfo<TupleDesc_F64>
public class DescribeSurf_Point<T extends ImageGray<T>,II extends ImageGray<II>>
extends Object
implements DescribePoint<T,TupleDesc_F64>
Wrapper around SURF for
DescribePoint
.-
Field Summary
Modifier and TypeFieldDescriptionprotected OrientationIntegral<II>
double
Size of the region's radius.protected DescribePointSurf<II>
-
Constructor Summary
ConstructorDescriptionDescribeSurf_Point
(DescribePointSurf<II> surf, OrientationIntegral<II> orientation, double regionRadius, Class<T> imageType) -
Method Summary
Modifier and TypeMethodDescriptionCreates new description instance which can be processed by this classThe type of region descriptor generatedDescription of the type of image it can processboolean
process
(double x, double y, TupleDesc_F64 storage) Extract a description of the local image at the the pixel coordinate of the point.void
Specified the image which is to be processed.
-
Field Details
-
regionRadius
public double regionRadiusSize of the region's radius. If set to a value ≤ 0, then it will be changed to canonical radius -
surf
-
orientation
-
-
Constructor Details
-
DescribeSurf_Point
public DescribeSurf_Point(DescribePointSurf<II> surf, OrientationIntegral<II> orientation, double regionRadius, Class<T> imageType)
-
-
Method Details
-
setImage
Description copied from interface:DescribePoint
Specified the image which is to be processed. -
process
Description copied from interface:DescribePoint
Extract a description of the local image at the the pixel coordinate of the point. 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 interfaceDescribePoint<T extends ImageGray<T>,
II extends ImageGray<II>> - Parameters:
x
- Coordinate of the point.y
- Coordinate of the point.storage
- (output) Storage for extracted feature. UseDescriptorInfo.createDescription()
to create descriptor.- Returns:
- true if a descriptor can computed or false if not.
-
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
-
getImageType
Description copied from interface:DescribePoint
Description of the type of image it can process- Specified by:
getImageType
in interfaceDescribePoint<T extends ImageGray<T>,
II extends ImageGray<II>> - 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.
-