double2rgb
版本 1.0.0.0 (1.8 KB) 作者:
David Legland
Converts an array of double (2D or 3D) to an RGB image using specified colormap
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');
引用格式
David Legland (2024). double2rgb (https://www.mathworks.com/matlabcentral/fileexchange/30264-double2rgb), MATLAB Central File Exchange. 检索时间: .
MATLAB 版本兼容性
创建方式
R2009b
兼容任何版本
平台兼容性
Windows macOS Linux类别
- MATLAB > Graphics > Images > Convert Image Type >
在 Help Center 和 MATLAB Answers 中查找有关 Convert Image Type 的更多信息
标签
致谢
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!版本 | 已发布 | 发行说明 | |
---|---|---|---|
1.0.0.0 |