How to superimpose multiple images and then save the figure?

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

Answers (1)

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

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
Can you try the average code by replacing double with im2double
You can also try using the imfuse() function of the matlab

Sign in to comment.

Asked:

on 29 Oct 2019

Commented:

on 30 Oct 2019

Community Treasure Hunt

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

Start Hunting!