boofcv.abst.feature.describe
Class DescribeRegionPointConvert<T extends ImageGray,In extends TupleDesc,Out extends TupleDesc>
- java.lang.Object
-
- boofcv.abst.feature.describe.DescribeRegionPointConvert<T,In,Out>
-
- All Implemented Interfaces:
- DescribeRegionPoint<T,Out>, DescriptorInfo<Out>
public class DescribeRegionPointConvert<T extends ImageGray,In extends TupleDesc,Out extends TupleDesc> extends java.lang.Object implements DescribeRegionPoint<T,Out>
Converts the region descriptor type from theDescribeRegionPointinto the desired output using aConvertTupleDesc.
-
-
Constructor Summary
Constructors Constructor and Description DescribeRegionPointConvert(DescribeRegionPoint<T,In> original, ConvertTupleDesc<In,Out> converter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description OutcreateDescription()Creates new description instance which can be processed by this classdoublegetCanonicalWidth()Returns the width of the square (or approximation of) sample region at a scale of one.java.lang.Class<Out>getDescriptionType()The type of region descriptor generatedImageType<T>getImageType()Description of the type of image it can processbooleanprocess(double x, double y, double orientation, double radius, Out storage)Extract a description of the local image at the given point, scale, and orientation.booleanrequiresOrientation()True if the descriptor uses orientation information.booleanrequiresRadius()If size information is used when computing the descriptor.voidsetImage(T image)Specified the image which is to be processed.
-
-
-
Constructor Detail
-
DescribeRegionPointConvert
public DescribeRegionPointConvert(DescribeRegionPoint<T,In> original, ConvertTupleDesc<In,Out> converter)
-
-
Method Detail
-
setImage
public void setImage(T image)
Description copied from interface:DescribeRegionPointSpecified the image which is to be processed.
-
createDescription
public Out createDescription()
Description copied from interface:DescriptorInfoCreates new description instance which can be processed by this class- Specified by:
createDescriptionin interfaceDescriptorInfo<Out extends TupleDesc>- Returns:
- New descriptor
-
process
public boolean process(double x, double y, double orientation, double radius, Out storage)Description copied from interface:DescribeRegionPointExtract 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 interfaceDescribeRegionPoint<T extends ImageGray,Out extends TupleDesc>- 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 computed or false if not.
-
requiresRadius
public boolean requiresRadius()
Description copied from interface:DescribeRegionPointIf size information is used when computing the descriptor.- Specified by:
requiresRadiusin interfaceDescribeRegionPoint<T extends ImageGray,Out extends TupleDesc>- Returns:
- true is the radius is used when computing the descriptor or false if not
-
requiresOrientation
public boolean requiresOrientation()
Description copied from interface:DescribeRegionPointTrue if the descriptor uses orientation information.- Specified by:
requiresOrientationin interfaceDescribeRegionPoint<T extends ImageGray,Out extends TupleDesc>- Returns:
- if orientation needs to be provided or not
-
getImageType
public ImageType<T> getImageType()
Description copied from interface:DescribeRegionPointDescription of the type of image it can process- Specified by:
getImageTypein interfaceDescribeRegionPoint<T extends ImageGray,Out extends TupleDesc>- Returns:
- ImageDataType
-
getCanonicalWidth
public double getCanonicalWidth()
Description copied from interface:DescribeRegionPointReturns 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 interfaceDescribeRegionPoint<T extends ImageGray,Out extends TupleDesc>- Returns:
- width of descriptor at a scale of one
-
getDescriptionType
public java.lang.Class<Out> getDescriptionType()
Description copied from interface:DescriptorInfoThe type of region descriptor generated- Specified by:
getDescriptionTypein interfaceDescriptorInfo<Out extends TupleDesc>- Returns:
- Returns the descriptor type.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG