public static class ColorImageComparator.ForegroundColorMap extends java.lang.Object implements ColorImageComparator.ColorMap
foreground
color to white, other - to black.Constructor and Description |
---|
ForegroundColorMap(int foreground)
Constructs a ColorImageComparator$ForegroundColorMap object.
|
Modifier and Type | Method and Description |
---|---|
int |
mapColor(int rgb)
Maps one color into another.
|
public ForegroundColorMap(int foreground)
foreground
- Foreground color.public int mapColor(int rgb)
ColorImageComparator.ColorMap
mapColor
in interface ColorImageComparator.ColorMap
rgb
- an original color.