public class ImplOrientationAverageGradientIntegral<T extends boofcv.struct.image.ImageGray,G extends boofcv.struct.sparse.GradientValue> extends OrientationIntegralBase<T,G>
Estimates the orientation of a region by computing the image derivative from an integral image. The derivative along each axis is summed up and the angle computed from that.
g, ii, kernelWidth, objectRadiusToScale, period, sampleRadius, sampleWidth, scale, weights| Constructor and Description |
|---|
ImplOrientationAverageGradientIntegral(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,
boofcv.struct.sparse.SparseImageGradient<T,G> g)
Compute the gradient while checking for border conditions
|
protected double |
computeWeighted(double tl_x,
double tl_y,
double samplePeriod,
boofcv.struct.sparse.SparseImageGradient<T,G> g)
Compute the gradient while checking for border conditions
|
getImageType, setImage, setObjectRadiuspublic ImplOrientationAverageGradientIntegral(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 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,
boofcv.struct.sparse.SparseImageGradient<T,G> g)