boofcv.alg.feature.orientation
Class OrientationImageAverage<T extends ImageGray>
- java.lang.Object
-
- boofcv.alg.feature.orientation.OrientationImageAverage<T>
-
- All Implemented Interfaces:
- OrientationImage<T>, RegionOrientation
- Direct Known Subclasses:
- ImplOrientationImageAverage_F32, ImplOrientationImageAverage_U8
public abstract class OrientationImageAverage<T extends ImageGray> extends java.lang.Object implements OrientationImage<T>
Computes the orientation of a region by computing a weighted sum of each pixel's intensity using their respective sine and cosine values.
-
-
Constructor Summary
Constructors Constructor and Description OrientationImageAverage(double objectToSample, int defaultRadius)
-
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.voidsetImage(T image)Specifies input image data for estimating orientation.voidsetObjectRadius(double objectRadius)Specifies the circle's radius that the orientation should be-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface boofcv.abst.feature.orientation.OrientationImage
getImageType
-
-
-
-
Constructor Detail
-
OrientationImageAverage
public OrientationImageAverage(double objectToSample, int defaultRadius)
-
-
Method Detail
-
setImage
public void setImage(T image)
Description copied from interface:OrientationImageSpecifies input image data for estimating orientation.- Specified by:
setImagein interfaceOrientationImage<T extends ImageGray>- Parameters:
image- Input image..
-
setObjectRadius
public void setObjectRadius(double objectRadius)
Description copied from interface:RegionOrientationSpecifies the circle's radius that the orientation should be- Specified by:
setObjectRadiusin interfaceRegionOrientation- Parameters:
objectRadius- Object's radius.
-
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