public class WrapDescribePixelRegion<T extends ImageSingleBand,D extends TupleDesc> extends Object implements DescribeRegionPoint<T,D>
DescribePointPixelRegion for
DescribeRegionPoint.| Constructor and Description |
|---|
WrapDescribePixelRegion(DescribePointPixelRegion<T,D> alg,
Class<T> imageType) |
| Modifier and Type | Method and Description |
|---|---|
D |
createDescription()
Creates new description instance which can be processed by this class
|
Class<D> |
getDescriptionType()
The type of region descriptor generated
|
ImageType<T> |
getImageType()
Description of the type of image it can process
|
boolean |
process(double x,
double y,
double orientation,
double scale,
D storage)
Extract a description of the local image at the given point, scale, and orientation.
|
boolean |
requiresOrientation()
True if the descriptor uses orientation information.
|
boolean |
requiresScale()
If scale information is used when computing the descriptor.
|
void |
setImage(T image)
Specified the image which is to be processed.
|
public WrapDescribePixelRegion(DescribePointPixelRegion<T,D> alg, Class<T> imageType)
public D createDescription()
DescriptorInfocreateDescription in interface DescriptorInfo<D extends TupleDesc>public void setImage(T image)
DescribeRegionPointsetImage in interface DescribeRegionPoint<T extends ImageSingleBand,D extends TupleDesc>image - The image which contains the features.public boolean process(double x,
double y,
double orientation,
double scale,
D storage)
DescribeRegionPointprocess in interface DescribeRegionPoint<T extends ImageSingleBand,D extends TupleDesc>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-axisscale - Scale at which the feature was found.storage - (output) Storage for extracted feature. Use DescriptorInfo.createDescription() to create descriptor.public boolean requiresScale()
DescribeRegionPointrequiresScale in interface DescribeRegionPoint<T extends ImageSingleBand,D extends TupleDesc>public boolean requiresOrientation()
DescribeRegionPointrequiresOrientation in interface DescribeRegionPoint<T extends ImageSingleBand,D extends TupleDesc>public ImageType<T> getImageType()
DescribeRegionPointgetImageType in interface DescribeRegionPoint<T extends ImageSingleBand,D extends TupleDesc>public Class<D> getDescriptionType()
DescriptorInfogetDescriptionType in interface DescriptorInfo<D extends TupleDesc>Copyright © 2013. All Rights Reserved.