Class RandomFlipTopBottom

  • All Implemented Interfaces:
    Transform

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

      Constructors 
      Constructor Description
      RandomFlipTopBottom()
      Creates a new instance of RandomFlipTopBottom.
      RandomFlipTopBottom​(int seed)
      Creates a new instance of RandomFlipTopBottom 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

      • RandomFlipTopBottom

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

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