Colorize Signed Image
Make an RGB image of a signed matrix, with positive values in red, negative values in blue, and zero values in white or black. An all-gray option is also present.
The image values are scaled to 0..255, and the same scaling factor is applied to both positive and negative values so their magnitudes can be compared.
An optional gamma-correction factor can be applied to the image, useful to
accentuate small values.
In comparison to POLARMAP, this function actually returns a new 8-bpp RGB image with the transformed values. The advantage is that you can save the image to a PNG for use in documents, the disadvantage is that COLORBAR does not do anything.
Cite As
Andrew Fitzgibbon (2026). Colorize Signed Image (https://uk.mathworks.com/matlabcentral/fileexchange/37828-colorize-signed-image), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- MATLAB > Graphics > Images > Modify Image Colors >
Tags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 |
