T - Input image type.D - Image derivative type.public class GeneralToInterestPoint<T extends boofcv.struct.image.ImageGray,D extends boofcv.struct.image.ImageGray> extends EasyGeneralFeatureDetector<T,D> implements InterestPointDetector<T>
GeneralFeatureDetector to make it compatible with InterestPointDetector.| Modifier and Type | Field and Description |
|---|---|
protected org.ddogleg.struct.FastQueue<georegression.struct.point.Point2D_F64> |
foundPoints |
| Constructor and Description |
|---|
GeneralToInterestPoint(GeneralFeatureDetector<T,D> detector,
double radius,
java.lang.Class<T> imageType,
java.lang.Class<D> derivType) |
GeneralToInterestPoint(GeneralFeatureDetector<T,D> detector,
boofcv.abst.filter.derivative.ImageGradient<T,D> gradient,
boofcv.abst.filter.derivative.ImageHessian<D> hessian,
double radius,
java.lang.Class<D> derivType) |
| Modifier and Type | Method and Description |
|---|---|
void |
detect(T input)
Detects interest points inside the provided image.
|
georegression.struct.point.Point2D_F64 |
getLocation(int featureIndex)
The center location of the feature inside the image.
|
int |
getNumberOfFeatures()
Returns the number of interest points found.
|
double |
getOrientation(int featureIndex)
Returns the features found orientation.
|
double |
getRadius(int featureIndex)
Returns the detected object's circular radius
|
boolean |
hasOrientation()
If the interest point detector estimates the feature's orientation
|
boolean |
hasScale()
Does the interest point detector have scale information
|
detect, getDetector, getMaximums, getMinimumsprotected org.ddogleg.struct.FastQueue<georegression.struct.point.Point2D_F64> foundPoints
public GeneralToInterestPoint(GeneralFeatureDetector<T,D> detector, double radius, java.lang.Class<T> imageType, java.lang.Class<D> derivType)
public void detect(T input)
InterestPointDetectordetect in interface InterestPointDetector<T extends boofcv.struct.image.ImageGray>input - Input features are detected inside of.public int getNumberOfFeatures()
FoundPointSOgetNumberOfFeatures in interface FoundPointSOpublic georegression.struct.point.Point2D_F64 getLocation(int featureIndex)
FoundPointSOThe center location of the feature inside the image.
WARNING: Do not save the returned reference, copy instead. The returned point can be recycled each time this function is called.
getLocation in interface FoundPointSOfeatureIndex - The feature's index.public double getRadius(int featureIndex)
FoundPointSOReturns the detected object's circular radius
getRadius in interface FoundPointSOfeatureIndex - Feature whose radius is being requested.public double getOrientation(int featureIndex)
FoundPointSOgetOrientation in interface FoundPointSOfeatureIndex - Feature whosepublic boolean hasScale()
InterestPointDetectorhasScale in interface InterestPointDetector<T extends boofcv.struct.image.ImageGray>public boolean hasOrientation()
InterestPointDetectorhasOrientation in interface InterestPointDetector<T extends boofcv.struct.image.ImageGray>