overlay to image matrix together

I want to overlay two images (in resultant image I want to see details of both images.) any one can help me?

1 Commento

Jan
Jan il 12 Set 2013
Please avoid posting multiple thread containing the same questions, see http://www.mathworks.com/matlabcentral/answers/87007-overlay-two-image-matrix-together. Now both threads contains answers and the confusion level is increased without any need.

Accedi per commentare.

 Risposta accettata

Image Analyst
Image Analyst il 12 Set 2013

0 voti

Try imfuse() or imshowpair().

3 Commenti

thank you.I try this,HV=imfuse(H+V); but it gives the error message."??? Undefined function or method 'imfuse' for input arguments of type 'double'.".I cant understand that I'm very new for MATLAB.
Image Analyst
Image Analyst il 12 Set 2013
Modificato: Image Analyst il 12 Set 2013
You used a + instead of a comma. Try imfuse(H,V). Plus you need to have a modern version of MATLAB. You probably should upgrade to R2013b, because you probably have an ancient version.
thank you

Accedi per commentare.

Più risposte (2)

Laurent
Laurent il 12 Set 2013
It depends a lot on your images and what you exactly want, but did you try to just sum them?
overlay_im=image1+image2;
If this is not what you need, please elaborate more on what you would like to achieve.

2 Commenti

thank you.but this is not the result what i want. this is my problem, i have two images derived from one image. image1=vertical edges of the original image image2=horizontal edges of the original image now i want to overlay both without summing them
Laurent
Laurent il 12 Set 2013
Modificato: Laurent il 12 Set 2013
Ah, assuming that your images are binary images you could do:
overlay_im=image1|image2;

Accedi per commentare.

Steve Eddins
Steve Eddins il 12 Set 2013

0 voti

Image Analyst's answer to use imfuse is good. To use imfuse, you have to have the Image Processing Toolbox with version R2012a or later.
Another option is imoverlay on the File Exchange.

Categorie

Scopri di più su Images in Centro assistenza e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by