code: public static <I extends ImageGray<I>, D extends ImageGray<D>>
  	GeneralFeatureDetector<I, D> general(GeneralFeatureIntensity<I, D> intensity,
  										 NonMaxSuppression extractor,
  										 int maxFeatures ) {
  		GeneralFeatureDetector<I, D> det = new GeneralFeatureDetector<>(intensity, extractor);
  		det.setMaxFeatures(maxFeatures);
  
  		return det;
  	}
docs: Creates a generalized feature detector/extractor that adds n-best capability to {@link boofcv.abst.feature.detect.extract.NonMaxSuppression}
  and performs other house keeping tasks. Handles calling {@link GeneralFeatureIntensity} itself.
  
  
  @param intensity   Feature intensity algorithm
  @param extractor   Feature extraction algorithm.
  @param maxFeatures Maximum number of features it should return. -1 to return them all.
  @return General feature detector