double2rgb

Converts an array of double (2D or 3D) to an RGB image using specified colormap
1,6K download
Aggiornato 2 feb 2011

Visualizza la licenza

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');

Cita come

David Legland (2026). double2rgb (https://it.mathworks.com/matlabcentral/fileexchange/30264-double2rgb), MATLAB Central File Exchange. Recuperato .

Compatibilità della release di MATLAB
Creato con R2009b
Compatibile con qualsiasi release
Compatibilità della piattaforma
Windows macOS Linux
Categorie
Scopri di più su Convert Image Type in Help Center e MATLAB Answers
Riconoscimenti

Ispirato: Easy Plot EEG Brain Network Matlab

Versione Pubblicato Note della release
1.0.0.0