public abstract class OrientationImageAverage<T extends boofcv.struct.image.ImageSingleBand> extends java.lang.Object implements OrientationImage<T>
| Modifier and Type | Field and Description |
|---|---|
protected T |
image |
protected boofcv.struct.convolve.Kernel2D_F32 |
kerCosine |
protected boofcv.struct.convolve.Kernel2D_F32 |
kerSine |
protected int |
radius |
protected int |
radiusScale |
protected boofcv.struct.ImageRectangle |
rect |
| Constructor and Description |
|---|
OrientationImageAverage(int radius) |
| Modifier and Type | Method and Description |
|---|---|
double |
compute(double X,
double Y)
Computes the orientation of a region about its center.
|
protected abstract double |
computeAngle(int c_x,
int c_y) |
void |
setImage(T image)
Specifies input image data for estimating orientation.
|
void |
setRadius(int radius) |
void |
setScale(double scale)
Specifies scale at which the orientation is estimated.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetImageTypeprotected T extends boofcv.struct.image.ImageSingleBand image
protected boofcv.struct.ImageRectangle rect
protected int radius
protected int radiusScale
protected boofcv.struct.convolve.Kernel2D_F32 kerCosine
protected boofcv.struct.convolve.Kernel2D_F32 kerSine
public void setImage(T image)
OrientationImagesetImage in interface OrientationImage<T extends boofcv.struct.image.ImageSingleBand>image - Input image..public void setRadius(int radius)
public void setScale(double scale)
RegionOrientationsetScale in interface RegionOrientationscale - Scale of the orientation region.public double compute(double X,
double Y)
RegionOrientationcompute in interface RegionOrientationX - Center of the region in image pixels.Y - Center of the region in image pixels.protected abstract double computeAngle(int c_x,
int c_y)