how can I use matlab to superimpose images with uniformly faded alpha data overlay
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
vidya
am 6 Aug. 2014
Kommentiert: vidya
am 7 Aug. 2014
Dear Mathwork community and support team,
I am a novice Matlab image processing user. I am trying to find an appropriate code to overlay two images such that the top image overlay is opaque in the center and uniformly fades or blurs to completely transparent in each direction show the bottom image. I looked at a similar discussion on using alpha data but I was unable to understand how to apply the fade / blur and transparent algorithm using alpha data and repmat functions in all directions of the image(<http://www.mathworks.com/matlabcentral/answers/100086-how-do-i-superimpose-images-in-matlab)>.
Please can someone with good understanding of matlab image processing help me with this question.
Thanks a lot for the help.
Kind Regards,
Vidya
0 Kommentare
Akzeptierte Antwort
Image Analyst
am 6 Aug. 2014
Try imfuse() or imshowpair().
3 Kommentare
Image Analyst
am 7 Aug. 2014
You can apply a weighted average
w = 0.25; % or whatever...
newImage = w*double(image1) + (1-w) * double(image2);
imshow(newImage, []);
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Basic Display 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!