Package boofcv.alg.feature.describe
Class DescribePlanar<T extends ImageGray<T>,Desc extends TupleDesc<Desc>>
java.lang.Object
boofcv.alg.feature.describe.DescribePlanar<T,Desc>
- All Implemented Interfaces:
DescribePointRadiusAngle<Planar<T>,,Desc> DescriptorInfo<Desc>
public abstract class DescribePlanar<T extends ImageGray<T>,Desc extends TupleDesc<Desc>>
extends Object
implements DescribePointRadiusAngle<Planar<T>,Desc>
Computes a feature description from
Planar images by computing a descriptor separately in each band.
The output descriptor is computed by concatenating the descriptors for each bands together. So [1,2,3] and [3,4,5]
from a two band image will become [1,2,3,3,4,5].-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDescribePlanar(DescribePointRadiusAngle<T, Desc>[] describers) Configuration -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract voidGiven all the descriptors computed independently in each band, combine them together into a single descriptor.doubleReturns the width of the square (or approximation of) sample region at a scale of one.The type of region descriptor generatedbooleanTrue if the descriptor uses orientation information.booleanIf size information is used when computing the descriptor.booleanExtract a description of the local image at the given point, scale, and orientation.voidSpecified the image which is to be processed.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface boofcv.abst.feature.describe.DescribePointRadiusAngle
getImageTypeMethods inherited from interface boofcv.abst.feature.describe.DescriptorInfo
createDescription
-
Constructor Details
-
DescribePlanar
Configuration- Parameters:
describers- A descriptor for each band in the image.
-
-
Method Details
-
setImage
Description copied from interface:DescribePointRadiusAngleSpecified the image which is to be processed. -
process
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>,Desc extends TupleDesc<Desc>> - 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.
-
combine
Given all the descriptors computed independently in each band, combine them together into a single descriptor. -
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>,Desc extends TupleDesc<Desc>> - 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>,Desc extends TupleDesc<Desc>> - Returns:
- if orientation needs to be provided or not
-
getDescriptionType
Description copied from interface:DescriptorInfoThe type of region descriptor generated- Specified by:
getDescriptionTypein interfaceDescriptorInfo<T extends ImageGray<T>>- Returns:
- Returns the descriptor type.
-
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>,Desc extends TupleDesc<Desc>> - Returns:
- width of descriptor at a scale of one
-