public class ImplOrientationImageAverageIntegral<T extends ImageSingleBand,G extends 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 Kernel2D_F64 |
kerCosine |
protected 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.
|
getImageType
protected Kernel2D_F64 kerCosine
protected 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)
OrientationIntegral
setImage
in interface OrientationIntegral<T extends ImageSingleBand>
setImage
in class OrientationIntegralBase<T extends ImageSingleBand,G extends GradientValue>
integralImage
- Input image transformed into an integral image.public void setScale(double scale)
RegionOrientation
setScale
in interface RegionOrientation
setScale
in class OrientationIntegralBase<T extends ImageSingleBand,G extends GradientValue>
scale
- Scale of the orientation region.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)
protected double computeWeighted(double tl_x, double tl_y, double samplePeriod)
Copyright © 2011-2012 Peter Abeles