Borrar filtros
Borrar filtros

Combination of 2 image

1 visualización (últimos 30 días)
burcu bilgic
burcu bilgic el 11 de Ag. de 2022
Comentada: burcu bilgic el 14 de Ag. de 2022
Hi,
I want to combine two images. the firts one is the original image and the second one is the inside contour of the hole. I want to combine these two images and make the inside contour black and obtain a final image having the inside area black.
Is it possible to make the white area transparent and keep the black region as it is and show two image by overlaying ontop of each other
I added the original image and the contour image that I could generate by using image processing and I also add a representative final image that I want to achieve by using image processing.
Can you help me :

Respuesta aceptada

David Hill
David Hill el 11 de Ag. de 2022
idx=find(B(:,:,1)~=0&B(:,:,2)~=0&B(:,:,3)~=0);%find ~black pixels in image B
C=B;
C(idx)=A(:,:,idx);%set ~black pixels to image A pixels
C(2*idx)=A(:,:,idx);
C(3(idx)=A(:,:,idx);
imshow(C);
  1 comentario
burcu bilgic
burcu bilgic el 14 de Ag. de 2022
Thank you so much !! it worked like a charm :)

Iniciar sesión para comentar.

Más respuestas (0)

Community Treasure Hunt

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

Start Hunting!

Translated by