apply_color_matrix: Apply a 3x3 color transform to an image
Description
Apply a 3x3 color transform to an image
Usage
apply_color_matrix(img, M = diag(3))
Value
Array with transformed RGB; alpha preserved.
Arguments
- img
3/4-channel array (RGB/A). 2D (grey) or 2-channel (grey+alpha) pass through.
- M
3x3 matrix.