Class FlipImageTransform

    • Constructor Detail

      • FlipImageTransform

        public FlipImageTransform()
        Calls this(null).
      • FlipImageTransform

        public FlipImageTransform​(int flipMode)
        Calls this(null) and sets the flip mode.
        Parameters:
        flipMode - the deterministic flip mode 0 Flips around x-axis. >0 Flips around y-axis. <0 Flips around both axes.
      • FlipImageTransform

        public FlipImageTransform​(Random random)
        Constructs an instance of the ImageTransform. Randomly does not flip, or flips horizontally or vertically, or both.
        Parameters:
        random - object to use (or null for deterministic)
    • Method Detail

      • query

        public float[] query​(float... coordinates)
        Description copied from interface: ImageTransform
        Transforms the given coordinates using the parameters that were used to transform the last image.
        Specified by:
        query in interface ImageTransform
        Overrides:
        query in class BaseImageTransform<org.bytedeco.opencv.opencv_core.Mat>
        Parameters:
        coordinates - to transforms (x1, y1, x2, y2, ...)
        Returns:
        transformed coordinates