How can we superimpose more than 2 images?

9 ビュー (過去 30 日間)
Hina Ismail
Hina Ismail 2016 年 3 月 14 日
コメント済み: Image Analyst 2016 年 3 月 16 日
For e.g; imshowpair(Image1,image2); can be use to superimpose 2 images. What if I have 10 images?
  5 件のコメント
Hina Ismail
Hina Ismail 2016 年 3 月 14 日
Please have a look the image. Similarly I want to see edge difference of all images. Hope my question is clear now. Thanks once again
Adam
Adam 2016 年 3 月 15 日
編集済み: Adam 2016 年 3 月 15 日
You need to be clear as to what you are aiming to do, independent of the method you will use to do it.
The difference of two images is clear and easy to define. As soon as you add a 3rd image this is no longer the case.
How do you mathematically define the difference of 3 images, let alone 10 images?
Once you have answered that then what you want to do is trivial because you don't need imshowpair, you simply apply the maths yourself and use imshow on the compound result.

サインインしてコメントする。

採用された回答

Image Analyst
Image Analyst 2016 年 3 月 14 日
Average them
sumImage = double(image1)+ double(image2)+ double(image3)+ double(image4) + ...... etc.
meanImage = sumImage / numberOfImages;

その他の回答 (1 件)

Hina Ismail
Hina Ismail 2016 年 3 月 14 日
編集済み: Hina Ismail 2016 年 3 月 14 日
Hi Guys,
Thanks for your response. The attached figure is the edge detection of two images, where I can see the difference of edges. Similarly, I have 10 images how can I show it in the same image?
  4 件のコメント
Hina Ismail
Hina Ismail 2016 年 3 月 15 日
Another question. Is there anyway I can show the calculated edge difference of each image? May be by calculating difference pixels?
Image Analyst
Image Analyst 2016 年 3 月 16 日
It looked like your edges are in different places, so exactly what does the "edge difference" mean? You can just subtract the edge images and that will make sense if the edges are in the same place but just have different strengths, but if they are in different locations, then what does that mean?
If you want to threshold the images and assign each binary image to a different value, then you can simply add them together and apply a colormap with label2rgb().

サインインしてコメントする。

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by