public class ImplOrientationSlidingWindowIntegral<T extends ImageSingleBand,G extends GradientValue> extends OrientationIntegralBase<T,G>
Implementation of OrientationSlidingWindow
for integral images.
TODO comment how this implementation works
Modifier and Type | Field and Description |
---|---|
protected double[] |
angles |
protected int[] |
order |
protected double |
windowSize |
g, ii, period, radius, sampleWidth, scale, weights, width
Constructor and Description |
---|
ImplOrientationSlidingWindowIntegral(double samplePeriod,
double windowSize,
int radius,
double weightSigma,
int sampleKernelWidth,
java.lang.Class<T> integralType)
Specifies configuration parameters and initializes data structures
|
Modifier and Type | Method and Description |
---|---|
double |
compute(double c_x,
double c_y)
Computes the orientation of a region about its center.
|
getImageType, setImage, setScale
protected double windowSize
protected double[] angles
protected int[] order
public ImplOrientationSlidingWindowIntegral(double samplePeriod, double windowSize, int radius, double weightSigma, int sampleKernelWidth, java.lang.Class<T> integralType)
samplePeriod
- How often the image is sampled. This number is scaled. Typically 1.windowSize
- Angular window that is slide acrossradius
- Radius of the region being considered in terms of samples. Typically 6.weightSigma
- Sigma for weighting distribution. Zero for unweighted.sampleKernelWidth
- Size of kernel doing the sampling. Typically 4.integralType
- Type of integral image being processed.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.Copyright © 2011-2012 Peter Abeles