Superimpose multiple images with same colormap
조회 수: 3 (최근 30일)
이전 댓글 표시
Working on a project of tracking cell trajectory (time lapse) on a petri dish.
I have 2 images that i used the watershed feature to dispose of the background and have been left with Image 1 and Image 2:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/166168/image.jpeg)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/166170/image.jpeg)
Let's say i have 20 pictures like this, how might I superimpose (or do I want to overlay?) one on top of another that can create a colormap to represent time?
댓글 수: 0
답변 (1개)
shivam sahil
2018년 5월 16일
This might help:
final_image=imoverlay(image1,image2,[1 0 0]);
%1 0 0 corresponds to red overlaying if you want any other
%color change accordingly, also make sure both the images have
%equal dimensions.
댓글 수: 1
shivam sahil
2018년 5월 16일
Or you can also use this code:
if true
ix(1)=image1;
ix(2)=image2;
for i=3:20
ix(i)=imfuse(ix(i-2),ix(i-1)); %specify certain method if you want
end
end
참고 항목
카테고리
Help Center 및 File Exchange에서 Red에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!