public abstract class OrientationImageAverage<T extends boofcv.struct.image.ImageGray> 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 double |
objectToSample |
protected boofcv.struct.ImageRectangle |
rect |
protected int |
sampleRadius |
| Constructor and Description |
|---|
OrientationImageAverage(double objectToSample,
int defaultRadius) |
| 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 |
setObjectRadius(double objectRadius)
Specifies the circle's radius that the orientation should be
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetImageTypeprotected T extends boofcv.struct.image.ImageGray image
protected boofcv.struct.ImageRectangle rect
protected double objectToSample
protected int sampleRadius
protected boofcv.struct.convolve.Kernel2D_F32 kerCosine
protected boofcv.struct.convolve.Kernel2D_F32 kerSine
public OrientationImageAverage(double objectToSample,
int defaultRadius)
public void setImage(T image)
OrientationImagesetImage in interface OrientationImage<T extends boofcv.struct.image.ImageGray>image - Input image..public void setObjectRadius(double objectRadius)
RegionOrientationsetObjectRadius in interface RegionOrientationobjectRadius - Object's radius.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)