/** * Wraps {@link FeatureLaplacePyramid} inside an {@link InterestPointDetector}. * * @param feature Feature detector. * @param scales Scales at which features are detected at. * @param pyramid Should it be constructed as a pyramid or scale-space * @param inputType Image type of input image. * @return The interest point detector. */ public static <T extends ImageGray, D extends ImageGray> InterestPointDetector<T> wrapDetector(FeatureLaplacePyramid<T, D> feature, double[] scales, boolean pyramid, Class<T> inputType) { PyramidFloat<T> ss; if( pyramid ) ss = FactoryPyramid.scaleSpacePyramid(scales, inputType); else ss = FactoryPyramid.scaleSpace(scales, inputType); return new WrapFLPtoInterestPoint<>(feature, ss); }