Add Colour Shading to Grayscale Image

Adds coloured tint to a grayscale image.


Updated 27 May 2019

View License

This takes a grayscale image and applies a colour shading to it. A specified colour is added to the original image (white to black) to return a shaded version (colour to black) of the same size.

Cite As (2023). Add Colour Shading to Grayscale Image (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2019a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes

Updated title.


Improved picture.


Both input variables now use [0,255] input range.