public class ImplOrientationImageAverageIntegral<T extends boofcv.struct.image.ImageGray,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, kernelWidth, objectRadiusToScale, period, sampleRadius, sampleWidth, scale, weights| Constructor and Description |
|---|
ImplOrientationImageAverageIntegral(double radiusToScale,
int sampleRadius,
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 |
setObjectRadius(double radius)
Specifies the circle's radius that the orientation should be
|
getImageTypeprotected boofcv.struct.convolve.Kernel2D_F64 kerCosine
protected boofcv.struct.convolve.Kernel2D_F64 kerSine
public ImplOrientationImageAverageIntegral(double radiusToScale,
int sampleRadius,
double period,
int sampleWidth,
double weightSigma,
java.lang.Class<T> imageType)
sampleRadius - 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.ImageGray>setImage in class OrientationIntegralBase<T extends boofcv.struct.image.ImageGray,G extends boofcv.struct.sparse.GradientValue>integralImage - Input image transformed into an integral image.public void setObjectRadius(double radius)
RegionOrientationsetObjectRadius in interface RegionOrientationsetObjectRadius in class OrientationIntegralBase<T extends boofcv.struct.image.ImageGray,G extends boofcv.struct.sparse.GradientValue>radius - Object's radius.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)