Package boofcv.abst.feature.orientation
Class OrientationSiftToImage<T extends ImageGray<T>>
java.lang.Object
boofcv.abst.feature.orientation.OrientationSiftToImage<T>
- All Implemented Interfaces:
OrientationImage<T>
,RegionOrientation
public class OrientationSiftToImage<T extends ImageGray<T>> extends Object implements OrientationImage<T>
Wrapper around
OrientationHistogramSift
for OrientationImage
. Selects
the best solution from the multiple solutions.-
Constructor Summary
Constructors Constructor Description OrientationSiftToImage(OrientationHistogramSift<GrayF32> alg, SiftScaleSpace ss, Class<T> imageType)
-
Method Summary
Modifier and Type Method Description double
compute(double c_x, double c_y)
Computes the orientation of a region about its center.RegionOrientation
copy()
Creates a copy which is functionally identicalClass<T>
getImageType()
Returns the type of image it can process.void
setImage(T image)
Specifies input image data for estimating orientation.void
setObjectRadius(double radius)
Specifies the circle's radius that the orientation should be
-
Constructor Details
-
OrientationSiftToImage
public OrientationSiftToImage(OrientationHistogramSift<GrayF32> alg, SiftScaleSpace ss, Class<T> imageType)
-
-
Method Details
-
setImage
Description copied from interface:OrientationImage
Specifies input image data for estimating orientation.- Specified by:
setImage
in interfaceOrientationImage<T extends ImageGray<T>>
- Parameters:
image
- Input image..
-
getImageType
Description copied from interface:OrientationImage
Returns the type of image it can process.- Specified by:
getImageType
in interfaceOrientationImage<T extends ImageGray<T>>
- Returns:
- Type of image which can be processed
-
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.
-
compute
public double compute(double c_x, double c_y)Description copied from interface:RegionOrientation
Computes the orientation of a region about its center.- Specified by:
compute
in 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:RegionOrientation
Creates a copy which is functionally identical- Specified by:
copy
in interfaceRegionOrientation
-