How can we superimpose more than 2 images?
조회 수: 8 (최근 30일)
이전 댓글 표시
For e.g; imshowpair(Image1,image2); can be use to superimpose 2 images. What if I have 10 images?
댓글 수: 5
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
2016년 3월 14일
Average them
sumImage = double(image1)+ double(image2)+ double(image3)+ double(image4) + ...... etc.
meanImage = sumImage / numberOfImages;
댓글 수: 0
추가 답변 (1개)
Hina Ismail
2016년 3월 14일
편집: Hina Ismail
2016년 3월 14일
댓글 수: 4
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().
참고 항목
카테고리
Help Center 및 File Exchange에서 Basic Display에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!