use of boofcv.abst.feature.detect.interest.ConfigFast in project BoofCV by lessthanoptimal.
the class FactoryDetectPoint method createFast.
/**
* Creates a Fast corner detector.
*
* @param configFast Configuration for FAST feature detector
* @param configDetector Configuration for feature extractor.
* @param imageType Type of input image.
* @see FastCornerIntensity
*/
@SuppressWarnings("UnnecessaryLocalVariable")
public static <T extends ImageGray<T>, D extends ImageGray<D>> GeneralFeatureDetector<T, D> createFast(@Nullable ConfigFast configFast, ConfigGeneralDetector configDetector, Class<T> imageType) {
if (configFast == null)
configFast = new ConfigFast();
configFast.checkValidity();
ConfigGeneralDetector d = configDetector;
FastCornerIntensity<T> alg = FactoryIntensityPointAlg.fast(configFast.pixelTol, configFast.minContinuous, imageType);
GeneralFeatureIntensity<T, D> intensity = new WrapperFastCornerIntensity<>(alg);
ConfigGeneralDetector configExtract = new ConfigGeneralDetector(d.maxFeatures, d.radius, d.threshold, 0, true, false, true);
return createGeneral(intensity, configExtract);
}
Aggregations