public class DetectDescribeFusion<T extends boofcv.struct.image.ImageGray,TD extends TupleDesc> extends java.lang.Object implements DetectDescribePoint<T,TD>
InterestPointDetector,
OrientationImage,
DescribeRegionPoint| Constructor and Description |
|---|
DetectDescribeFusion(InterestPointDetector<T> detector,
OrientationImage<T> orientation,
DescribeRegionPoint<T,TD> describe)
Configures the algorithm.
|
| Modifier and Type | Method and Description |
|---|---|
TD |
createDescription()
Creates new description instance which can be processed by this class
|
void |
detect(T input)
Detects interest points inside the provided image.
|
TD |
getDescription(int index)
Returns the feature descriptor at the specified index.
|
java.lang.Class<TD> |
getDescriptionType()
The type of region descriptor generated
|
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
|
public DetectDescribeFusion(InterestPointDetector<T> detector, OrientationImage<T> orientation, DescribeRegionPoint<T,TD> describe)
detector - Feature detectororientation - (Optional) orientation estimation algorithmdescribe - Describes featurespublic TD createDescription()
DescriptorInfocreateDescription in interface DescriptorInfo<TD extends TupleDesc>public TD getDescription(int index)
DetectDescribePointReturns the feature descriptor at the specified index.
WARNING: The returned data structure is recycled each time InterestPointDetector.detect(boofcv.struct.image.ImageBase)
is called. Create a copy if this is a problem.
getDescription in interface DetectDescribePoint<T extends boofcv.struct.image.ImageGray,TD extends TupleDesc>index - Which featurepublic java.lang.Class<TD> getDescriptionType()
DescriptorInfogetDescriptionType in interface DescriptorInfo<TD extends TupleDesc>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>