how to create a colormap to represent an image with negative pixels

Hello,
After some operations on two images I1 and I2 , you create a third image M such that M=(I1-I2/(I1+I2). M would contain negative pixels and positive pixels with values ranging between -1 to 1. How one could create a colormap that represent these pixel values in colors?
Thank you!

 채택된 답변

Image Analyst
Image Analyst 2014년 7월 24일

0 개 추천

Use colormap() and colorbar(). Use caxis() to specify what numerical values correspond to the ends of the colorbar.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Color and Styling에 대해 자세히 알아보기

질문:

2014년 7월 24일

댓글:

2014년 7월 24일

Community Treasure Hunt

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

Start Hunting!

Translated by