public class ImplOrientationAverageGradientIntegral<T extends ImageSingleBand,G extends 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, period, radius, sampleWidth, scale, weights, width
Constructor and Description |
---|
ImplOrientationAverageGradientIntegral(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,
SparseImageGradient<T,G> g)
Compute the gradient while checking for border conditions
|
protected double |
computeWeighted(double tl_x,
double tl_y,
double samplePeriod,
SparseImageGradient<T,G> g)
Compute the gradient while checking for border conditions
|
getImageType, setImage, setScale
public ImplOrientationAverageGradientIntegral(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 double compute(double c_x, double c_y)
RegionOrientation
c_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, SparseImageGradient<T,G> g)
protected double computeWeighted(double tl_x, double tl_y, double samplePeriod, SparseImageGradient<T,G> g)
Copyright © 2011-2012 Peter Abeles