Overlap / Combine two image
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Is there any idea to combine/overlap two images into one? I would like to combine the foreground and background in this image.
I wish only the human image remained after the fusion, but after I tried it, the background did not turn to be totally black. Is there any idea to enhance it? Thank you.
0 Kommentare
Akzeptierte Antwort
Anton Semechko
am 1 Feb. 2012
By convention foreground is usually white (pixel value = 1) and background is black (pixel value = 0). Suppose IM is your original grayscale image and BW is a binary image of the same size as IM, where positive pixels (i.e. those that have value = 1) belong to the foreground. To subtract the background from IM, do the following:
IM(~BW)=0;
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Image Filtering and Enhancement finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!