1. A device, comprising: memory having stored thereon a matrix map; and a processor being configured to perform actions, including: receiving a red-green-blue (RGB) image having a plurality of pixels; performing local color matching on the RGB image to generate a color-matched image, by, for each pixel in the color matching input image: obtaining a three-by-three matrix from the matrix map; generating an RGB pixel value at a pixel location in the color-matched image by multiplying an RGB three-tuple pixel value as a one-by-three matrix for that pixel from the RGB image with the three-by-three matrix from the matrix map for the pixel location of the pixel; and generating an output image from the color-matched image by performing matrix multiplication on each pixel of the color-matched image using a selectable constant three-by-three matrix.