/** * 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, D extends ImageGray> GeneralFeatureDetector<T, D> createFast( 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); }