public class OrientationGradientToImage<T extends boofcv.struct.image.ImageSingleBand,D extends boofcv.struct.image.ImageSingleBand> 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 |
setScale(double scale)
Specifies scale at which the orientation is estimated.
|
public void setImage(T image)
OrientationImagesetImage in interface OrientationImage<T extends boofcv.struct.image.ImageSingleBand>image - Input image..public java.lang.Class<T> getImageType()
OrientationImagegetImageType in interface OrientationImage<T extends boofcv.struct.image.ImageSingleBand>public void setScale(double scale)
RegionOrientationsetScale in interface RegionOrientationscale - Scale of the orientation region.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.