code: public static <T extends ImageGray<T>, D extends ImageGray<D>>
  	InterestPointDetector<T> wrapDetector(FeaturePyramid<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 WrapFPtoInterestPoint<>(feature, ss);
  	}
docs: Wraps {@link FeaturePyramid} 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.