how to combine two different images in matlab?

2 visualizaciones (últimos 30 días)
ashok
ashok el 1 de Feb. de 2014
Comentada: Walter Roberson el 1 de Feb. de 2014
how can i add two functions ? how can i add two images

Respuesta aceptada

Walter Roberson
Walter Roberson el 1 de Feb. de 2014
newimage = image1 + image2;
Unless the two images are not the same size. Or unless you do not mean "add" in the arithmetic sense and instead mean something like "put them side by side".
  2 comentarios
Image Analyst
Image Analyst el 1 de Feb. de 2014
Editada: Image Analyst el 1 de Feb. de 2014
If they're integers (uint8 or uint16), cast to double to prevent clipping.
Regarding Walter's display suggestion, try imshowpair(), imfuse(), or montage().
Walter Roberson
Walter Roberson el 1 de Feb. de 2014
Ashok didn't say anything about wanting to prevent clipping. I suspect Ashok has not thought about that problem.

Iniciar sesión para comentar.

Más respuestas (0)

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by