
This component is obsolete and its use in filters is not recommended. Use the recent version of the component.
The Desaturate component converts the image provided by the Source input into grayscale according to the specified Method. This operation affects only the color of the source image, it does not affect its alpha channel. This is a map component, it can be located in the Adjustments category on the Components Bar.
Source: Map Input, Required
Provides the source image to be desaturated. This is a required input – in order to make the Desaturate component work, this input must be connected.
Method: Numeric Input
Specifies the desaturation method. The following methods are available:
- Weighted Average – based on the HSY color model, taking the Y channel as a grayscale value. This method is recommended when you need to take human perception of color into account, for example, when converting color photos into black-and-white.
- Average – produces a grayscale value by averaging R, G, and B channels. This method is non-perceptual and is best for 'technical' conversion of color into grayscale. For example, this method is used by Filter Forge for automatic conversion of color data in grayscale map inputs.
- Lightness – based on the HSB color model, taking the B channel as a grayscale value. This method is provided for compatibility with Adobe® Photoshop® which uses this method in its 'Desaturate' adjustment. For more information on the HSB (HSV) color model, see this Wikipedia article.