how do i add a background image to face image

8 visualizaciones (últimos 30 días)
Sarat Rasheed
Sarat Rasheed el 20 de Dic. de 2017
Respondida: Image Analyst el 20 de Dic. de 2017
i have multiple face pictures and background pictures, i want to put them together. set 1 as background and put the face pictures on them.

Respuesta aceptada

Image Analyst
Image Analyst el 20 de Dic. de 2017
See the FAQ http://matlab.wikia.com/wiki/FAQ#How_can_I_process_a_sequence_of_files.3F and my attached copy and paste demos.
Or you can make a mask of what pixels you want to replace, then do
image1(mask) = image2(mask);
This will replace image1's pixels with the pixels of image2, but only within the masked region. mask is a binary/logical image that is true where you want to replace the pixels and false where you don't want to replace the pixels.

Más respuestas (0)

Categorías

Más información sobre Read, Write, and Modify Image en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by