double2rgb
Computes the min and max values within the input array, convert to 256 values, and apply a colormap to produce a color image (RGB).
It is possible to specifies the range of values to consider, as well as the background color (used for NaN values).
Example:
% Display a default matrix
subplot(1, 2, 1);
imshow(peaks(128), []);
title('as double')
% display the coresponding RGB image
subplot(1, 2, 2); imshow(double2rgb(peaks(128), jet, [-8 8]));
title('as RGB');
Citation pour cette source
David Legland (2026). double2rgb (https://fr.mathworks.com/matlabcentral/fileexchange/30264-double2rgb), MATLAB Central File Exchange. Extrait(e) le .
Compatibilité avec les versions de MATLAB
Plateformes compatibles
Windows macOS LinuxCatégories
- MATLAB > Graphics > Images > Convert Image Type >
Tags
Remerciements
A inspiré : Easy Plot EEG Brain Network Matlab
Découvrir Live Editor
Créez des scripts avec du code, des résultats et du texte formaté dans un même document exécutable.
| Version | Publié le | Notes de version | |
|---|---|---|---|
| 1.0.0.0 |
