Class OpenCVResizeFunction

  • All Implemented Interfaces:
    Function<ImageWrapper<org.opencv.core.Mat>,​ImageWrapper<org.opencv.core.Mat>>, ImageFunction<org.opencv.core.Mat,​org.opencv.core.Mat>

    public class OpenCVResizeFunction
    extends Object
    implements ImageFunction<org.opencv.core.Mat,​org.opencv.core.Mat>

    Function for resizing a image

    Since:
    1.0
    Author:
    Christoph Praschl
    • Constructor Detail

      • OpenCVResizeFunction

        public OpenCVResizeFunction()
    • Method Detail

      • setWidthAndRelativeHeight

        public void setWidthAndRelativeHeight​(int resizeWidth,
                                              int originalWidth,
                                              int originalHeight)
        Setter for setting width and the height relative to the new width and the original image dimensions
        Parameters:
        resizeWidth - The new width of the image
        originalWidth - The original width of the image
        originalHeight - The original height of the image