To overlap two or more images to give single image for all property data in single image

2 views (last 30 days)
I wannt to overlap three images to get single image showing all three color map in final image... I started using the standard approach of using 1 image a s background and second imaged as transparent set using AlphaData and repmat to give fading form. But it will not be clear for 3 or four images.

Accepted Answer

Sreeja Banerjee
Sreeja Banerjee on 9 Jun 2015
Hi Sanjeet,
I understand that you want to superimpose two or more images. After looking at the images that you have attached with the question I could find that: a) the images have a black background b) the colorbar is a part of each image
Assuming that you are creating the images using MATLAB, I would recommend you to not have the colorbar as a part of each image. Instead use the same mapping for the colorbar of all the images and then create only one colorbar for the final image. Looking at the images that you have attached, looks like each image is drawn based on same color, so that way there will be only one colorbar for the final image and hence, less misleading. Please look at the following documentation that will show you how to change the color mapping of the COLORBAR: http://www.mathworks.com/help/matlab/creating_plots/change-mapping-of-data-values-into-the-colormap.html
If you are not able to do that, I would recommend you to:
1) Use transparent background instead of black for the images. You can either modify the 'backgroundcolor' property while reading the image using IMREAD or create the image in MATLAB with no background color. IMREAD: http://www.mathworks.com/help/matlab/ref/imread.html
2) Place the colorbar for the different images at different positions so that they do not overlap. You may modify the 'placement' property of COLORBAR COLORBAR: http://www.mathworks.com/help/matlab/ref/colorbar.html
If you have questions on image overlay then I would recommend you to read the folowing article on image overlay: http://blogs.mathworks.com/steve/2009/02/18/image-overlay-using-transparency/
  1 Comment
sanjeet
sanjeet on 10 Jun 2015
Hi I am using two image 1st background and second as transparent image overlay over former. Both images previous have blue background and individual colorbar. I have attached with this post.
So far i am not able to get colormap/coorbar for the final image Also I am not able to get the clear distinct final image showing both original distribution, both pattern changed due to combining.

Sign in to comment.

More Answers (0)

Products

Community Treasure Hunt

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

Start Hunting!