how to combine two different images in matlab?

조회 수: 2 (최근 30일)
ashok
ashok 2014년 2월 1일
댓글: Walter Roberson 2014년 2월 1일
how can i add two functions ? how can i add two images

채택된 답변

Walter Roberson
Walter Roberson 2014년 2월 1일
newimage = image1 + image2;
Unless the two images are not the same size. Or unless you do not mean "add" in the arithmetic sense and instead mean something like "put them side by side".
  댓글 수: 2
Image Analyst
Image Analyst 2014년 2월 1일
편집: Image Analyst 2014년 2월 1일
If they're integers (uint8 or uint16), cast to double to prevent clipping.
Regarding Walter's display suggestion, try imshowpair(), imfuse(), or montage().
Walter Roberson
Walter Roberson 2014년 2월 1일
Ashok didn't say anything about wanting to prevent clipping. I suspect Ashok has not thought about that problem.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by