public abstract class DescribePlanar<T extends boofcv.struct.image.ImageGray,Desc extends TupleDesc> extends java.lang.Object implements DescribeRegionPoint<boofcv.struct.image.Planar<T>,Desc>
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 and Description |
|---|
DescribePlanar(DescribeRegionPoint<T,Desc>[] describers)
Configuration
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
combine(Desc description)
Given all the descriptors computed independently in each band, combine them together into a single descriptor.
|
double |
getCanonicalWidth()
Returns the width of the square (or approximation of) sample region at a scale of one.
|
java.lang.Class<Desc> |
getDescriptionType()
The type of region descriptor generated
|
boolean |
process(double x,
double y,
double orientation,
double radius,
Desc description)
Extract a description of the local image at the given point, scale, and orientation.
|
boolean |
requiresOrientation()
True if the descriptor uses orientation information.
|
boolean |
requiresRadius()
If size information is used when computing the descriptor.
|
void |
setImage(boofcv.struct.image.Planar<T> image)
Specified the image which is to be processed.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetImageTypecreateDescriptionpublic DescribePlanar(DescribeRegionPoint<T,Desc>[] describers)
describers - A descriptor for each band in the image.public void setImage(boofcv.struct.image.Planar<T> image)
DescribeRegionPointsetImage in interface DescribeRegionPoint<boofcv.struct.image.Planar<T extends boofcv.struct.image.ImageGray>,Desc extends TupleDesc>image - The image which contains the features.public boolean process(double x,
double y,
double orientation,
double radius,
Desc description)
DescribeRegionPointprocess in interface DescribeRegionPoint<boofcv.struct.image.Planar<T extends boofcv.struct.image.ImageGray>,Desc 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-axisradius - Radius of the detected object in pixels.description - (output) Storage for extracted feature. Use DescriptorInfo.createDescription() to create descriptor.protected abstract void combine(Desc description)
description - public boolean requiresRadius()
DescribeRegionPointrequiresRadius in interface DescribeRegionPoint<boofcv.struct.image.Planar<T extends boofcv.struct.image.ImageGray>,Desc extends TupleDesc>public boolean requiresOrientation()
DescribeRegionPointrequiresOrientation in interface DescribeRegionPoint<boofcv.struct.image.Planar<T extends boofcv.struct.image.ImageGray>,Desc extends TupleDesc>public java.lang.Class<Desc> getDescriptionType()
DescriptorInfogetDescriptionType in interface DescriptorInfo<Desc extends TupleDesc>public double getCanonicalWidth()
DescribeRegionPointgetCanonicalWidth in interface DescribeRegionPoint<boofcv.struct.image.Planar<T extends boofcv.struct.image.ImageGray>,Desc extends TupleDesc>