Pixelation Effect and Privacy Masking
Pixelation reduces image resolution creating blocky effect for privacy protection (blurring faces, license plates) or artistic purposes. Algorithm: dividing image into grid cells, calculating average color per cell, filling entire cell with averaged color. Implementation uses Canvas: sampling pixel data with getImageData(), computing color averages (R, G, B channels separately), drawing filled rectangles for each cell with putImageData().