Package boofcv.deepboof
Class ClipAndReduce<T extends ImageBase<T>>
java.lang.Object
boofcv.deepboof.ClipAndReduce<T>
Transforms an image in an attempt to not change the information contained inside of it for processing by
a classification algorithm that requires an image of fixed size. This is done by clipping the image to
ensure that it has the same aspect ratio then scales it using bilinear interpolation.
-
Constructor Summary
ConstructorDescriptionClipAndReduce
(boolean clip, ImageType<T> imageType) Configuration constructor -
Method Summary
-
Constructor Details
-
ClipAndReduce
Configuration constructor- Parameters:
clip
- If true it will first clip the image to make it square before reducing it's size. Otherwise both sides are scaled independently to make it squareimageType
- Type of image it iwll be processing
-
-
Method Details
-
massage
Clipps and scales the input image as necessary- Parameters:
input
- Input image. Typically larger than outputoutput
- Output image
-