How to display a grayscale Depth image in a colofull way ?

조회 수: 10 (최근 30일)
texas instruments
texas instruments 2014년 1월 27일
답변: Image Analyst 2014년 1월 27일
such that : instead of ranging the colors from black to white as the intensity varies from 0 to 255 we change the color from blue to red, including all other colors as the intensity ranges from 0 to 255, thanks in advance.

답변 (2개)

Walter Roberson
Walter Roberson 2014년 1월 27일
colormap(jet(256))

Image Analyst
Image Analyst 2014년 1월 27일
Walter's code should do it. This may also interest you: http://www.mathworks.com/matlabcentral/fileexchange/35452-finddepressions

Community Treasure Hunt

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

Start Hunting!

Translated by