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!

 Akzeptierte Antwort

Image Analyst
Image Analyst am 24 Jul. 2014

0 Stimmen

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

Weitere Antworten (0)

Kategorien

Mehr zu Color and Styling finden Sie in Hilfe-Center und File Exchange

Gefragt:

am 24 Jul. 2014

Kommentiert:

am 24 Jul. 2014

Community Treasure Hunt

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

Start Hunting!

Translated by