Class RandomBrightness

  • All Implemented Interfaces:
    Transform

    public class RandomBrightness
    extends java.lang.Object
    implements Transform
    A Transform that randomly jitters image brightness with a factor chosen from [max(0, 1 - brightness), 1 + brightness].
    • Constructor Summary

      Constructors 
      Constructor Description
      RandomBrightness​(float brightness)
      Creates a RandomBrightness Transform.
    • 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

      • RandomBrightness

        public RandomBrightness​(float brightness)
        Creates a RandomBrightness Transform.
        Parameters:
        brightness - the brightness factor from 0 to 1