ColorImageComparator.ColorMap
public 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.ColorMap
mapColor
in interface ColorImageComparator.ColorMap
rgb
- an original color.