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 ExchangeColor 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