Class OpenCVCropFunction

  • 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 OpenCVCropFunction
    extends Object
    implements ImageFunction<org.opencv.core.Mat,​org.opencv.core.Mat>

    Function for cropping an image

    Since:
    1.0
    Author:
    Christoph Praschl
    • Constructor Detail

      • OpenCVCropFunction

        public OpenCVCropFunction()
    • Method Detail

      • setFrom

        public void setFrom​(double x,
                            double y)
        Parameters:
        x - coordinate of start point for cropping
        y - coordinate of start point for cropping
      • setTo

        public void setTo​(double x,
                          double y)
        Parameters:
        x - coordinate of end point for cropping
        y - coordinate of end point for cropping