Class YUVColor
- java.lang.Object
-
- science.aist.imaging.api.domain.color.Color
-
- science.aist.imaging.api.domain.color.YUVColor
-
- All Implemented Interfaces:
Serializable
,ThreeChannelColor
public class YUVColor extends Color implements ThreeChannelColor
Class representing a YUV-color.
- Since:
- 1.0
- Author:
- Christoph Praschl, Andreas Pointner
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getChannel1()
double
getChannel2()
double
getChannel3()
double
getUChroma()
double
getVChroma()
double
getYLuma()
boolean
isCompatibleWithType(ChannelType channelType)
Checks if color is compatible with channel typevoid
setChannel1(double channel)
void
setChannel2(double channel)
void
setChannel3(double channel)
void
setuChroma(double uChroma)
void
setvChroma(double vChroma)
void
setyLuma(double yLuma)
-
Methods inherited from class science.aist.imaging.api.domain.color.Color
equals, getChannel, getChannels, getChannelsShort, getNumberOfChannels, hashCode
-
-
-
-
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
-
-
Method Detail
-
getChannel1
public double getChannel1()
- Specified by:
getChannel1
in interfaceThreeChannelColor
- Returns:
- The first channel for the represented color
-
setChannel1
public void setChannel1(double channel)
- Specified by:
setChannel1
in interfaceThreeChannelColor
- Parameters:
channel
- The first channel for the represented color
-
getChannel2
public double getChannel2()
- Specified by:
getChannel2
in interfaceThreeChannelColor
- Returns:
- The second channel for the represented color
-
setChannel2
public void setChannel2(double channel)
- Specified by:
setChannel2
in interfaceThreeChannelColor
- Parameters:
channel
- The second channel for the represented color
-
getChannel3
public double getChannel3()
- Specified by:
getChannel3
in interfaceThreeChannelColor
- Returns:
- The third channel for the represented color
-
setChannel3
public void setChannel3(double channel)
- Specified by:
setChannel3
in interfaceThreeChannelColor
- 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 classColor
- Parameters:
channelType
- to be checked- Returns:
- true iff compatible
-
-