Class RandomHue

  • All Implemented Interfaces:
    Transform

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

      Constructors 
      Constructor Description
      RandomHue​(float hue)
      Creates a RandomHue 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

      • RandomHue

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