num2colormap.m

Convert numeric data to RGB values without changing the x,y data dimensions.

Al momento, stai seguendo questo contributo

I needed to create rgb jpg images of heatmaps that had the same dimensions as my input data. If a heatmap is created using the image function and then saved as a jpgeg, the dimensions of the resulting jpeg no longer correspond to the input dimensions of the data. This function returns a matrix of uint8 data with the same x and y dimensions as the data you input. The z dimension data correspond to RGB values. The output is suitable for conversion to jpg, tiff etc. using imwrite.m. This function supersedes num2jet.m. (Image processing toolbox required.)

Cita come

David Godlove (2026). num2colormap.m (https://it.mathworks.com/matlabcentral/fileexchange/28569-num2colormap-m), MATLAB Central File Exchange. Recuperato .

Categorie

Scopri di più su Convert Image Type in Help Center e MATLAB Answers

Informazioni generali

Compatibilità della release di MATLAB

  • Compatibile con qualsiasi release

Compatibilità della piattaforma

  • Windows
  • macOS
  • Linux
Versione Pubblicato Note della release Action
1.0.0.0