Class OpenCVPaddingFunction

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

    Function for apply a padding around the image. Creates a Border around the image with the given color.

    Since:
    1.0
    Author:
    Christoph Praschl
    • Constructor Detail

      • OpenCVPaddingFunction

        public OpenCVPaddingFunction()
    • Method Detail

      • setPaddings

        public void setPaddings​(int top,
                                int right,
                                int bottom,
                                int left)
        Parameter specifying how many pixels in each direction from the source image rectangle to extrapolate.
        Parameters:
        top - padding top
        bottom - padding bottom
        left - padding left
        right - padding right
      • setPaddings

        public void setPaddings​(int padding)
        Parameter specifying how many pixels in each direction from the source image rectangle to extrapolate.
        Parameters:
        padding - padding top
      • setBorderMode

        public void setBorderMode​(OpenCVBorderMode borderMode)
        Parameters:
        borderMode - Border type, one of the BORDER_* , except for BORDER_TRANSPARENT and BORDER_ISOLATED .