cv.AffineFeature2D/AffineFeature2D - MATLAB File Help |
Constructor
obj = cv.AffineFeature2D(detector)
obj = cv.AffineFeature2D(detector, extractor)
obj = cv.AffineFeature2D({detector, 'key',val,...})
obj = cv.AffineFeature2D({detector, 'key',val,...}, {extractor, 'key',val,...})
In the first variant, it creates descriptor detector/extractor of the given types using default parameters (by calling the default constructors).
In the second variant, it creates descriptor detector/extractor
of the given types using the specified options.
Each algorithm type takes optional arguments. Each of the
detector/extractor are specified by a cell-array that starts
with the type name followed by option arguments, as in:
{'Type', 'OptionName',optionValue, ...}
.
Refer to the individual detector/extractor functions to see a
list of possible options of each algorithm.
When both detector/extractor are passed, it creates an instance wrapping the given keypoint detector and descriptor extractor.
When only the detector is passed, it creates an instance where keypoint detector and descriptor extractor are identical.
detector = cv.AffineFeature2D('HarrisLaplaceFeatureDetector');
detector = cv.AffineFeature2D(...
{'HarrisLaplaceFeatureDetector', 'NumOctaves',6}, ...
{'SURF', 'Upright',false});