Class YUVColor

    • Field Detail

      • WHITE

        public static final transient YUVColor WHITE
        White HSV Color
      • BLACK

        public static final transient YUVColor BLACK
        Black HSV Color
      • RED

        public static final transient YUVColor RED
        Red HSV Color
      • GREEN

        public static final transient YUVColor GREEN
        Green HSV Color
      • BLUE

        public static final transient YUVColor BLUE
        Blue HSV Color
    • Constructor Detail

      • YUVColor

        public YUVColor()
      • YUVColor

        public YUVColor​(double y,
                        double u,
                        double v)
    • Method Detail

      • getChannel1

        public double getChannel1()
        Specified by:
        getChannel1 in interface ThreeChannelColor
        Returns:
        The first channel for the represented color
      • setChannel1

        public void setChannel1​(double channel)
        Specified by:
        setChannel1 in interface ThreeChannelColor
        Parameters:
        channel - The first channel for the represented color
      • getChannel2

        public double getChannel2()
        Specified by:
        getChannel2 in interface ThreeChannelColor
        Returns:
        The second channel for the represented color
      • setChannel2

        public void setChannel2​(double channel)
        Specified by:
        setChannel2 in interface ThreeChannelColor
        Parameters:
        channel - The second channel for the represented color
      • getChannel3

        public double getChannel3()
        Specified by:
        getChannel3 in interface ThreeChannelColor
        Returns:
        The third channel for the represented color
      • setChannel3

        public void setChannel3​(double channel)
        Specified by:
        setChannel3 in interface ThreeChannelColor
        Parameters:
        channel - The third channel for the represented color
      • setyLuma

        public void setyLuma​(double yLuma)
      • setuChroma

        public void setuChroma​(double uChroma)
      • setvChroma

        public void setvChroma​(double vChroma)
      • getYLuma

        public double getYLuma()
      • getUChroma

        public double getUChroma()
      • getVChroma

        public double getVChroma()
      • isCompatibleWithType

        public boolean isCompatibleWithType​(ChannelType channelType)
        Description copied from class: Color
        Checks if color is compatible with channel type
        Overrides:
        isCompatibleWithType in class Color
        Parameters:
        channelType - to be checked
        Returns:
        true iff compatible