CMRmap.m
Default colormaps on color images often reproduce to confusing grayscale images. The proposed colormap maintains an aesthetically pleasing color image that automatically reproduces to a monotonic grayscale with discrete, quantifiable saturation levels.
It is quite informative to display intensity information in terms of color levels in a graphic image. While the default mapping of intensity values to color (the ?colormap?) in commercial software, such as MATLAB? gives a visually pleasing and quantitatively useful graphic, much of this information is often lost when the original color image is printed or photocopied in black and white. This is due to the mapping of different colors to the same shade of gray, often resulting in both the maximum and the minimum intensity values ending up as black. To maintain high quality black and white images, the author generating the image is forced to use a grayscale colormap, and lose the attractive color option on his computer screen and his presentation images, or generate two separate renderings of the same information, one in black and white and one in color (or pay the particular journal?s expensive color printing charges).
Rather than sacrifice the pretty colors, we devised a colormap that preserves colors, but mixes the color components so that the back and white rendering of the colormap produces a grayscale representation that is monotonic with intensity. Thus the color images photocopy and print to effective black and white images suitable for journal printing. In addition, we divided the continuously variable color scale into nine discrete levels. Though variations in color are easy to see and quantify, continuously varying grayscale is quite difficult to interpret quantitatively. With nine discrete levels, the color representation more effectively maps to a quantifiable grayscale with enough levels to capture most of the fine scale intensity variation while maintaining enough difference between levels to be discernable.
Cita come
Carey Rappaport (2024). CMRmap.m (https://www.mathworks.com/matlabcentral/fileexchange/2662-cmrmap-m), MATLAB Central File Exchange. Recuperato .
Compatibilità della release di MATLAB
Compatibilità della piattaforma
Windows macOS LinuxCategorie
Tag
Riconoscimenti
Ispirato: squink(Colors,Gamma), Academic Figures, jetwhite(Colours), cmocean perceptually-uniform colormaps, Bipolar Colormap, Thermo-magnetic solver
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Scopri Live Editor
Crea script con codice, output e testo formattato in un unico documento eseguibile.
Versione | Pubblicato | Note della release | |
---|---|---|---|
1.0.0.0 |