how to create a colormap to represent an image with negative pixels
1 view (last 30 days)
Show older comments
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!
0 Comments
Accepted Answer
Image Analyst
on 24 Jul 2014
Use colormap() and colorbar(). Use caxis() to specify what numerical values correspond to the ends of the colorbar.
More Answers (0)
See Also
Categories
Find more on Blue in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!