how to ADD TO IMAGES

I have two images one is the original and the other is an edge map image how can i add these two images to get an image that shows a contour around the object(iris). i really appritiate your help.
thanks inadvance.

댓글 수: 2

Kye Taylor
Kye Taylor 2012년 10월 19일
What are the sizes of your two images? I guess that the original is an m-by-n-by-3, and the edge map is an m-by-n?
Matt J
Matt J 2012년 10월 19일
What's wrong with A+B?

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

답변 (2개)

Steve Eddins
Steve Eddins 2012년 10월 19일

0 개 추천

I suggest using imoverlay from the MATLAB Central File Exchange.
Image Analyst
Image Analyst 2012년 10월 19일
편집: Image Analyst 2012년 10월 19일

0 개 추천

Assuming your edge map is a binary image, you can do
grayImage(binaryImage) = 255;
to set all pixels in your original image that are also indicated on your edge map to white. If you have a color image, you can do it one color channel at a time. Or if your image is uint8, you can add them, relying on the uint8 class to do the clipping:
grayImage = grayImage + uint8(255 binaryImage);

카테고리

도움말 센터File Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기

태그

질문:

2012년 10월 19일

Community Treasure Hunt

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

Start Hunting!

Translated by