To overlap two or more images to give single image for all property data in single image
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
sanjeet
am 8 Jun. 2015
Kommentiert: sanjeet
am 10 Jun. 2015
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.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/150997/image.png)
0 Kommentare
Akzeptierte Antwort
Sreeja Banerjee
am 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/
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Blue finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!