Class ScaleImageTransform

    • Constructor Detail

      • ScaleImageTransform

        public ScaleImageTransform​(float delta)
        Calls this(null, delta, delta).
      • ScaleImageTransform

        public ScaleImageTransform​(Random random,
                                   float delta)
        Calls this(random, delta, delta).
      • ScaleImageTransform

        public ScaleImageTransform​(float dx,
                                   float dy)
        Calls this(null, dx, dy).
      • ScaleImageTransform

        public ScaleImageTransform​(Random random,
                                   float dx,
                                   float dy)
        Constructs an instance of the ImageTransform.
        Parameters:
        random - object to use (or null for deterministic)
        dx - maximum scaling in width of the image (pixels)
        dy - maximum scaling in height of the image (pixels)
    • 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