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 comentarios

Kye Taylor
Kye Taylor el 19 de Oct. de 2012
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 el 19 de Oct. de 2012
What's wrong with A+B?

Iniciar sesión para comentar.

Respuestas (2)

Steve Eddins
Steve Eddins el 19 de Oct. de 2012

0 votos

I suggest using imoverlay from the MATLAB Central File Exchange.
Image Analyst
Image Analyst el 19 de Oct. de 2012
Editada: Image Analyst el 19 de Oct. de 2012

0 votos

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);

Categorías

Más información sobre Image Processing Toolbox en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 19 de Oct. de 2012

Community Treasure Hunt

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

Start Hunting!

Translated by