adding multiple images together

4 visualizzazioni (ultimi 30 giorni)
Hemo khalifa
Hemo khalifa il 22 Nov 2013
Commentato: Image Analyst il 11 Gen 2017
Hi guys; I am looking 4 adding images (5 images) together, I ve used the normal way imadd but the result is a white page, is there any suggestions, I tried to add them as arrays but the same result I got.

Risposte (1)

Image Analyst
Image Analyst il 22 Nov 2013
Strange. Did you see the example in the help where it talks about clipping and how to specify a different output class?
Otherwise if you don't want to use imadd(), you can use + if you just cast to double or uint16:
output = double(image1) + double(image2) + double(image3) + double(image4) + double(image5);
  2 Commenti
Sujay Patole
Sujay Patole il 11 Gen 2017
gives error "Matrix dimensions must agree."
Image Analyst
Image Analyst il 11 Gen 2017
The images must be the same size of course. If you still want to do it, then you must use imresize() to force one image to be the size of the other image.

Accedi per commentare.

Community Treasure Hunt

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

Start Hunting!

Translated by