Class ImplOrientationImageAverageIntegral<T extends ImageGray<T>,G extends GradientValue>
java.lang.Object
boofcv.alg.feature.orientation.OrientationIntegralBase<T,G>
boofcv.alg.feature.orientation.impl.ImplOrientationImageAverageIntegral<T,G>
- All Implemented Interfaces:
OrientationIntegral<T>,RegionOrientation
public class ImplOrientationImageAverageIntegral<T extends ImageGray<T>,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.
-
Field Summary
FieldsFields inherited from class boofcv.alg.feature.orientation.OrientationIntegralBase
g, ii, kernelWidth, objectRadiusToScale, period, sampleRadius, sampleWidth, scale, weights, weightSigma -
Constructor Summary
ConstructorsConstructorDescriptionImplOrientationImageAverageIntegral(double radiusToScale, int sampleRadius, double period, int kernelWidth, double weightSigma, Class<T> imageType) -
Method Summary
Modifier and TypeMethodDescriptiondoublecompute(double c_x, double c_y) Computes the orientation of a region about its center.protected doublecomputeUnweighted(double tl_x, double tl_y, double samplePeriod) protected doublecomputeWeighted(double tl_x, double tl_y, double samplePeriod) copy()Creates a copy which is functionally identicalvoidSpecifies input image data for estimating orientation.voidsetObjectRadius(double radius) Specifies the circle's radius that the orientation should beMethods inherited from class boofcv.alg.feature.orientation.OrientationIntegralBase
getImageType
-
Field Details
-
kerCosine
-
kerSine
-
-
Constructor Details
-
ImplOrientationImageAverageIntegral
public ImplOrientationImageAverageIntegral(double radiusToScale, int sampleRadius, double period, int kernelWidth, double weightSigma, Class<T> imageType) - Parameters:
sampleRadius- Radius of the region being considered in terms of Wavelet samples. Typically 6.weightSigma- Sigma for weighting distribution. Zero for unweighted.
-
-
Method Details
-
setImage
Description copied from interface:OrientationIntegralSpecifies input image data for estimating orientation.- Specified by:
setImagein interfaceOrientationIntegral<T extends ImageGray<T>>- Overrides:
setImagein classOrientationIntegralBase<T extends ImageGray<T>,G extends GradientValue> - Parameters:
integralImage- Input image transformed into an integral image.
-
setObjectRadius
public void setObjectRadius(double radius) Description copied from interface:RegionOrientationSpecifies the circle's radius that the orientation should be- Specified by:
setObjectRadiusin interfaceRegionOrientation- Overrides:
setObjectRadiusin classOrientationIntegralBase<T extends ImageGray<T>,G extends GradientValue> - Parameters:
radius- Object's radius.
-
compute
public double compute(double c_x, double c_y) Description copied from interface:RegionOrientationComputes the orientation of a region about its center.- Parameters:
c_x- Center of the region in image pixels.c_y- Center of the region in image pixels.- Returns:
- Orientation in radians. Angle zero points along x-axis and pi/2 along y-axis.
-
computeUnweighted
protected double computeUnweighted(double tl_x, double tl_y, double samplePeriod) -
computeWeighted
protected double computeWeighted(double tl_x, double tl_y, double samplePeriod) -
copy
Description copied from interface:RegionOrientationCreates a copy which is functionally identical
-