필터 지우기
필터 지우기

Colormaps

조회 수: 6 (최근 30일)
Raldi
Raldi 2012년 1월 15일
Hi everyone, i wasnted to know how can i use imshow to print a matrix "X" using diferent colormaps. X is a [256x512x3] matrix with values give from the code below
X=zeros(256,512,3);
for i=1:256
X(i,:,:)=i;
end
im=im2uint8(X);

채택된 답변

Image Analyst
Image Analyst 2012년 1월 15일
No. You are creating a true color RGB image, so colormaps are not applicable at all. Colormaps only apply to what MAtLAB calls "indexed" images, which are nothing more than a grayscale image with a pseudocolor look up table (a colormap) applied to it upon display.
  댓글 수: 1
Raldi
Raldi 2012년 1월 15일
yes my bad i forgot that, thanks for the reply

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Red에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by