how to ADD TO IMAGES
5 次查看(过去 30 天)
显示 更早的评论
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
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?
回答(2 个)
Image Analyst
2012-10-19
编辑:Image Analyst
2012-10-19
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);
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Image Processing Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!