public class OrientationGradientToImage<T extends boofcv.struct.image.ImageGray,D extends boofcv.struct.image.ImageGray> extends java.lang.Object implements OrientationImage<T>
OrientationGradient into OrientationImage.| Constructor and Description |
|---|
OrientationGradientToImage(OrientationGradient<D> alg,
boofcv.abst.filter.derivative.ImageGradient<T,D> gradient,
java.lang.Class<T> inputType,
java.lang.Class<D> gradientType) |
| Modifier and Type | Method and Description |
|---|---|
double |
compute(double c_x,
double c_y)
Computes the orientation of a region about its center.
|
java.lang.Class<T> |
getImageType()
Returns the type of image it can process.
|
void |
setImage(T image)
Specifies input image data for estimating orientation.
|
void |
setObjectRadius(double radius)
Specifies the circle's radius that the orientation should be
|
public void setImage(T image)
OrientationImagesetImage in interface OrientationImage<T extends boofcv.struct.image.ImageGray>image - Input image..public java.lang.Class<T> getImageType()
OrientationImagegetImageType in interface OrientationImage<T extends boofcv.struct.image.ImageGray>public void setObjectRadius(double radius)
RegionOrientationsetObjectRadius in interface RegionOrientationradius - Object's radius.public double compute(double c_x,
double c_y)
RegionOrientationcompute in interface RegionOrientationc_x - Center of the region in image pixels.c_y - Center of the region in image pixels.