Package boofcv.misc
Class FactoryFilterLambdas
java.lang.Object
boofcv.misc.FactoryFilterLambdas
Random filters for lambas. Not sure where else to put these
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends ImageBase<T>>
BoofLambdas.Transform<T>createDownSampleFilter
(int maxImagePixels, ImageType<T> imageType) Creates a filter which seeks to scale an image down to the specified pixel count.
-
Constructor Details
-
FactoryFilterLambdas
public FactoryFilterLambdas()
-
-
Method Details
-
createDownSampleFilter
public static <T extends ImageBase<T>> BoofLambdas.Transform<T> createDownSampleFilter(int maxImagePixels, ImageType<T> imageType) Creates a filter which seeks to scale an image down to the specified pixel count. If the image is larger then the original image is returned. UsesAverageDownSampleOps
to scale the image.- Parameters:
maxImagePixels
- If the image has more pixels than this it will be scaled down. Set to a value ≤ 0 to disable this function;
-