ColorImageComparator.ColorMappublic static class ColorImageComparator.BackgroundColorMap extends java.lang.Object implements ColorImageComparator.ColorMap
background color to black, left others unchanged.| Constructor | Description |
|---|---|
BackgroundColorMap(int background) |
Constructs a ColorImageComparator$BackgroundColorMap object.
|
| Modifier and Type | Method | Description |
|---|---|---|
int |
mapColor(int rgb) |
Maps one color into another.
|
public BackgroundColorMap(int background)
background - Background color.public int mapColor(int rgb)
ColorImageComparator.ColorMapmapColor in interface ColorImageComparator.ColorMaprgb - an original color.