Package boofcv.alg.feature.orientation
Class OrientationIntegralBase<II extends ImageGray<II>,G extends GradientValue>
java.lang.Object
boofcv.alg.feature.orientation.OrientationIntegralBase<II,G>
- All Implemented Interfaces:
OrientationIntegral<II>
,RegionOrientation
- Direct Known Subclasses:
ImplOrientationAverageGradientIntegral
,ImplOrientationImageAverageIntegral
,ImplOrientationSlidingWindowIntegral
public abstract class OrientationIntegralBase<II extends ImageGray<II>,G extends GradientValue> extends Object implements OrientationIntegral<II>
Common base class for integral image region orientation algorithms.
-
Field Summary
Fields Modifier and Type Field Description protected SparseScaleGradient<II,G>
g
protected II
ii
protected int
kernelWidth
protected double
objectRadiusToScale
protected double
period
protected int
sampleRadius
protected int
sampleWidth
protected double
scale
protected Kernel2D_F64
weights
protected double
weightSigma
-
Constructor Summary
Constructors Modifier Constructor Description protected
OrientationIntegralBase(double objectRadiusToScale, int sampleRadius, double period, int kernelWidth, double weightSigma, boolean assignDefaultRadius, Class<II> integralType)
Configure orientation estimation. -
Method Summary
Modifier and Type Method Description Class<II>
getImageType()
Returns the type of image it can process.void
setImage(II integralImage)
Specifies input image data for estimating orientation.void
setObjectRadius(double radius)
Specifies the circle's radius that the orientation should beMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface boofcv.abst.feature.orientation.RegionOrientation
compute, copy
-
Field Details
-
ii
-
scale
protected double scale -
sampleRadius
protected int sampleRadius -
sampleWidth
protected int sampleWidth -
weights
-
weightSigma
protected double weightSigma -
kernelWidth
protected int kernelWidth -
period
protected double period -
objectRadiusToScale
protected double objectRadiusToScale -
g
-
-
Constructor Details
-
OrientationIntegralBase
protected OrientationIntegralBase(double objectRadiusToScale, int sampleRadius, double period, int kernelWidth, double weightSigma, boolean assignDefaultRadius, Class<II> integralType)Configure orientation estimation.- Parameters:
sampleRadius
- The radius of samples that it will do. Typically 6.period
- How often the image is sampled in pixels at canonical size. Internally, this value is scaled by scaledPeriod = period*objectRadius/sampleRadius. Typically 1.kernelWidth
- How wide of a kernel should be used to sample. Try 4weightSigma
- Sigma for weighting. Set to zero for unweighted, negative to use sampleRadius.assignDefaultRadius
- If true it will set the object's radius to a scale of 1
-
-
Method Details
-
setObjectRadius
public void setObjectRadius(double radius)Description copied from interface:RegionOrientation
Specifies the circle's radius that the orientation should be- Specified by:
setObjectRadius
in interfaceRegionOrientation
- Parameters:
radius
- Object's radius.
-
setImage
Description copied from interface:OrientationIntegral
Specifies input image data for estimating orientation.- Specified by:
setImage
in interfaceOrientationIntegral<II extends ImageGray<II>>
- Parameters:
integralImage
- Input image transformed into an integral image.
-
getImageType
Description copied from interface:OrientationIntegral
Returns the type of image it can process.- Specified by:
getImageType
in interfaceOrientationIntegral<II extends ImageGray<II>>
- Returns:
- Type of image which can be processed
-