org.canova.image.transform

Class FlipImageTransform

  • All Implemented Interfaces:
    ImageTransform


    public class FlipImageTransformextends BaseImageTransform<org.bytedeco.javacpp.opencv_core.Mat>
    Flips images deterministically or randomly.
    Author:
    saudet
    • 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

      • transform

        public 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.
        Parameters:
        image - to transform
        random - object to use (or null for deterministic)
        Returns:
        transformed image

Copyright © 2016. All rights reserved.



NOTHING
NOTHING
Add the Maven Dependecy to your project: maven dependecy for com.amazonaws : aws-java-sdk : 1.3.14