Class Color2GreyModule
java.lang.Object
|
+----Color2GreyModule
- class Color2GreyModule
- extends Object
- implements Modulable
Convert a Color image to a Grey scale image.
Data in the Color format is converted to the Grey format. You can specify
the filters of each color (red, green, blue). The filter is used in the
conversion to Grey scale images. A filter may range from 0 to 255 where
0 means don't use that color and 255 means use that color fully.
-
Color2GreyModule()
-
-
color2Grey(Colour, Grey, int, int, int)
- Filters the colors and converts them to Grey scale data.
-
run(DataStore, DataStore, ParameterStore)
- Convert a Color image to a Grey scale image.
Color2GreyModule
Color2GreyModule()
run
public boolean run(DataStore input,
DataStore output,
ParameterStore parameters)
- Convert a Color image to a Grey scale image.
Gets the filters from the parameter settings. Filters the colors and
converts the colors to Grey scale images. The parameters can be
set in EditModuleParameters.
- See Also:
- EditModuleParameters, Colour, Grey
color2Grey
private boolean color2Grey(Colour color,
Grey grey,
int redFilter,
int greenFilter,
int blueFilter)
- Filters the colors and converts them to Grey scale data.