This filter renders a greyscaled image like it is seen through a colored glass.
For every pixel, the filter computes a weighted average value of the RGB channels (this is equivalent to desaturating the image based on Luminosity). The resulted color is the product of this average value and the « colorify color ».
Hence, this filter works only on images in RGB mode.