필터 지우기
필터 지우기

Grayimage back to green

조회 수: 1 (최근 30일)
Jane
Jane 2013년 12월 16일
댓글: Jane 2013년 12월 16일
Hello, how can I convert this grayimage back to an rgb with green fluorescence?
<<
>>

채택된 답변

Image Analyst
Image Analyst 2013년 12월 16일
편집: Image Analyst 2013년 12월 16일
blackImage = zeros(size(grayImage), 'uint8');
rgbImage = cat(3, blackImage, grayImage, blackImage);
Or you can use ind2rgb():
cmap = [zeros(256,1), (0:255)', zeros(256,1)]
rgbImage = uint8(ind2rgb(grayImage, cmap));
  댓글 수: 1
Jane
Jane 2013년 12월 16일
thanks!

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Modify Image Colors에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by