MATLAB Answers

How to superimpose multiple images and then save the figure?

10 views (last 30 days)
maaham banu
maaham banu on 29 Oct 2019
Commented: Sai Bhargav Avula on 30 Oct 2019
This is the data set I have and I want to superimpose all of these images to achieve one image (refer second image).
P.S I have MATLAB 2015
data.JPG
superimpose.JPG

  0 Comments

Sign in to comment.

Answers (1)

Sai Bhargav Avula
Sai Bhargav Avula on 29 Oct 2019
Edited: Sai Bhargav Avula on 29 Oct 2019
Hi, The link below explains in detailed
Or
You can average them to achieve the desired result.
sumImage = double(image1)+ double(image2)+ double(image3)+ double(image4) + ...... etc.
meanImage = sumImage / numberOfImages;

  3 Comments

maaham banu
maaham banu on 30 Oct 2019
I have tried both of them and they both dont resolve my issues.
This is what I get after taking the sum of training image and averaging it.
wrong.JPG
Sai Bhargav Avula
Sai Bhargav Avula on 30 Oct 2019
Can you try the average code by replacing double with im2double

Sign in to comment.


Translated by