Class RandomFlipLeftRight

  • All Implemented Interfaces:
    Transform

    public class RandomFlipLeftRight
    extends java.lang.Object
    implements Transform
    A Transform that randomly flip the input image left to right with a probability of 0.5.
    • Constructor Summary

      Constructors 
      Constructor Description
      RandomFlipLeftRight()
      Creates a new instance of RandomFlipLeftRight.
      RandomFlipLeftRight​(int seed)
      Creates a new instance of RandomFlipLeftRight with the given seed.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      NDArray transform​(NDArray array)
      Applies the Transform to the given NDArray.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RandomFlipLeftRight

        public RandomFlipLeftRight()
        Creates a new instance of RandomFlipLeftRight.
      • RandomFlipLeftRight

        public RandomFlipLeftRight​(int seed)
        Creates a new instance of RandomFlipLeftRight with the given seed.
        Parameters:
        seed - the value of the seed