boofcv.alg.feature.orientation
Class OrientationAverage<D extends ImageGray>
- java.lang.Object
-
- boofcv.alg.feature.orientation.OrientationAverage<D>
-
- All Implemented Interfaces:
- OrientationGradient<D>, RegionOrientation
- Direct Known Subclasses:
- ImplOrientationAverage_F32, ImplOrientationAverage_S16, ImplOrientationAverage_S32
public abstract class OrientationAverage<D extends ImageGray> extends java.lang.Object implements OrientationGradient<D>
Computes the orientation of a region by summing up the derivative along each axis independently then computing the direction fom the sum. If weighted a Gaussian kernel centered around the targeted pixel is used.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description doublecompute(double X, double Y)Computes the orientation of a region about its center.intgetSampleRadius()Kernel2D_F32getWeights()voidsetImage(D derivX, D derivY)Specifies input image data for estimating orientation.voidsetObjectRadius(double radius)Specifies the circle's radius that the orientation should bevoidsetSampleRadius(int sampleRadius)-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface boofcv.abst.feature.orientation.OrientationGradient
getImageType
-
-
-
-
Method Detail
-
getSampleRadius
public int getSampleRadius()
-
setSampleRadius
public void setSampleRadius(int sampleRadius)
-
getWeights
public Kernel2D_F32 getWeights()
-
setObjectRadius
public void setObjectRadius(double radius)
Description copied from interface:RegionOrientationSpecifies the circle's radius that the orientation should be- Specified by:
setObjectRadiusin interfaceRegionOrientation- Parameters:
radius- Object's radius.
-
setImage
public void setImage(D derivX, D derivY)
Description copied from interface:OrientationGradientSpecifies input image data for estimating orientation.- Specified by:
setImagein interfaceOrientationGradient<D extends ImageGray>- Parameters:
derivX- Image derivative along x-axis.derivY- Image derivative along y-axis.
-
compute
public double compute(double X, double Y)Description copied from interface:RegionOrientationComputes the orientation of a region about its center.- Specified by:
computein interfaceRegionOrientation- Parameters:
X- Center of the region in image pixels.Y- Center of the region in image pixels.- Returns:
- Orientation in radians. Angle zero points along x-axis and pi/2 along y-axis.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG