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!

 Respuesta aceptada

Image Analyst
Image Analyst el 24 de Jul. de 2014
Use colormap() and colorbar(). Use caxis() to specify what numerical values correspond to the ends of the colorbar.

Más respuestas (0)

Categorías

Más información sobre Color and Styling en Centro de ayuda y File Exchange.

Preguntada:

el 24 de Jul. de 2014

Comentada:

el 24 de Jul. de 2014

Community Treasure Hunt

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

Start Hunting!

Translated by