public class ImplOrientationImageAverageIntegral<T extends boofcv.struct.image.ImageSingleBand,G extends boofcv.struct.sparse.GradientValue> extends OrientationIntegralBase<T,G>
Estimates the orientation of a region using a "derivative free" method. Points are sampled using an integral image.
| Modifier and Type | Field and Description |
|---|---|
protected boofcv.struct.convolve.Kernel2D_F64 |
kerCosine |
protected boofcv.struct.convolve.Kernel2D_F64 |
kerSine |
g, ii, period, radius, sampleWidth, scale, weights, width| Constructor and Description |
|---|
ImplOrientationImageAverageIntegral(int radius,
double period,
int sampleWidth,
double weightSigma,
java.lang.Class<T> imageType) |
| Modifier and Type | Method and Description |
|---|---|
double |
compute(double c_x,
double c_y)
Computes the orientation of a region about its center.
|
protected double |
computeUnweighted(double tl_x,
double tl_y,
double samplePeriod) |
protected double |
computeWeighted(double tl_x,
double tl_y,
double samplePeriod) |
void |
setImage(T integralImage)
Specifies input image data for estimating orientation.
|
void |
setScale(double scale)
Specifies scale at which the orientation is estimated.
|
getImageTypeprotected boofcv.struct.convolve.Kernel2D_F64 kerCosine
protected boofcv.struct.convolve.Kernel2D_F64 kerSine
public ImplOrientationImageAverageIntegral(int radius,
double period,
int sampleWidth,
double weightSigma,
java.lang.Class<T> imageType)
radius - Radius of the region being considered in terms of Wavelet samples. Typically 6.weightSigma - Sigma for weighting distribution. Zero for unweighted.public void setImage(T integralImage)
OrientationIntegralsetImage in interface OrientationIntegral<T extends boofcv.struct.image.ImageSingleBand>setImage in class OrientationIntegralBase<T extends boofcv.struct.image.ImageSingleBand,G extends boofcv.struct.sparse.GradientValue>integralImage - Input image transformed into an integral image.public void setScale(double scale)
RegionOrientationsetScale in interface RegionOrientationsetScale in class OrientationIntegralBase<T extends boofcv.struct.image.ImageSingleBand,G extends boofcv.struct.sparse.GradientValue>scale - Scale of the orientation region.public double compute(double c_x,
double c_y)
RegionOrientationc_x - Center of the region in image pixels.c_y - Center of the region in image pixels.protected double computeUnweighted(double tl_x,
double tl_y,
double samplePeriod)
protected double computeWeighted(double tl_x,
double tl_y,
double samplePeriod)