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