Desaturation and Grayscale Conversion
Desaturation (uncoloring) removes color from images creating grayscale/black-and-white effect. Grayscale algorithms: luminosity method (weighted average: 0.299R + 0.587G + 0.114B accounting for human eye sensitivity), average method (R+G+B)/3, and lightness method ((max(R,G,B) + min(R,G,B))/2). Implementation uses Canvas getImageData() to access pixels, converts each RGB pixel to grayscale value, and writes back with putImageData().