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