double2rgb

버전 1.0.0.0 (1.78 KB) 작성자: David Legland
Converts an array of double (2D or 3D) to an RGB image using specified colormap
다운로드 수: 1.6K
업데이트 날짜: 2011/2/2

라이선스 보기

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
카테고리
Help CenterMATLAB 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