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