Class BaseImageTransform<F>

    • Field Detail

      • random

        protected Random random
      • converter

        protected org.bytedeco.javacv.FrameConverter<F> converter
    • Constructor Detail

      • BaseImageTransform

        protected BaseImageTransform​(Random random)
    • Method Detail

      • transform

        public final ImageWritable transform​(ImageWritable image,
                                             Random random)
        Description copied from interface: ImageTransform
        Takes an image and returns a transformed image. Uses the random object in the case of random transformations.
        Specified by:
        transform in interface ImageTransform
        Parameters:
        image - to transform, null == end of stream
        random - object to use (or null for deterministic)
        Returns:
        transformed image
      • 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
        Parameters:
        coordinates - to transforms (x1, y1, x2, y2, ...)
        Returns:
        transformed coordinates