transparency between crop and actual image
Mostrar comentarios más antiguos
Hi I have an image which I cropped it using imcrop and then modified it a little bit, then I superimposed the cropped image on the actual image but I would like to know how I can get rid of side of smaller triangles (the one that contains the red part). Or I should say how can I make the crop image in upper left corner be transparent to actual image.

Respuestas (1)
Image Analyst
el 6 de Ag. de 2014
0 votos
6 comentarios
chess
el 6 de Ag. de 2014
Image Analyst
el 6 de Ag. de 2014
The line in the example said:
[a,map,alpha] = imread('foreground.png');
You used:
[a,map,alpha]=image2;
Notice any differences? LIke you're not calling the imread() function like the example did?
chess
el 6 de Ag. de 2014
Image Analyst
el 6 de Ag. de 2014
I believe Steve's blog illustrates that case.
Image Analyst
el 6 de Ag. de 2014
Are your images different sizes? That image does not look like an overlay, at least you didn't color it if it is. Attach your original image, and the image you want overlaid on top of it. Maybe you can just average the two images instead?
Categorías
Más información sobre Images en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
