Package boofcv.abst.feature.orientation
Class OrientationGradientToImage<T extends ImageGray<T>,D extends ImageGray<D>>
java.lang.Object
boofcv.abst.feature.orientation.OrientationGradientToImage<T,D>
- All Implemented Interfaces:
OrientationImage<T>,RegionOrientation
public class OrientationGradientToImage<T extends ImageGray<T>,D extends ImageGray<D>>
extends Object
implements OrientationImage<T>
Converts an implementation of
OrientationGradient into OrientationImage.-
Constructor Summary
ConstructorsConstructorDescriptionOrientationGradientToImage(OrientationGradient<D> alg, ImageGradient<T, D> gradient, Class<T> inputType, Class<D> gradientType) -
Method Summary
Modifier and TypeMethodDescriptiondoublecompute(double c_x, double c_y) Computes the orientation of a region about its center.copy()Creates a copy which is functionally identicalReturns the type of image it can process.voidSpecifies input image data for estimating orientation.voidsetObjectRadius(double radius) Specifies the circle's radius that the orientation should be
-
Constructor Details
-
OrientationGradientToImage
public OrientationGradientToImage(OrientationGradient<D> alg, ImageGradient<T, D> gradient, Class<T> inputType, Class<D> gradientType)
-
-
Method Details
-
setImage
Description copied from interface:OrientationImageSpecifies input image data for estimating orientation.- Specified by:
setImagein interfaceOrientationImage<T extends ImageGray<T>>- Parameters:
image- Input image..
-
getImageType
Description copied from interface:OrientationImageReturns the type of image it can process.- Specified by:
getImageTypein interfaceOrientationImage<T extends ImageGray<T>>- Returns:
- Type of image which can be processed
-
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.
-
compute
public double compute(double c_x, double c_y) Description copied from interface:RegionOrientationComputes the orientation of a region about its center.- Specified by:
computein interfaceRegionOrientation- 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.
-
copy
Description copied from interface:RegionOrientationCreates a copy which is functionally identical- Specified by:
copyin interfaceRegionOrientation
-