Borrar filtros
Borrar filtros

how can i retain rgb color to segmented image (binary)?

2 visualizaciones (últimos 30 días)
si sam
si sam el 9 de Nov. de 2015
Editada: Thorsten el 10 de Nov. de 2015
i have a result of background substraction (binary image) from the rgb input image (origin)...i wanna retain colors to the object extracted

Respuestas (3)

Thorsten
Thorsten el 9 de Nov. de 2015
Editada: Thorsten el 10 de Nov. de 2015
If the binary image B is 1 where the object is in image I, use
O = I.*B;
If the image has more layers than B, you can use
O = bsxfun(@times, I, B);

bayrem rem
bayrem rem el 9 de Nov. de 2015
this is the message error

bayrem rem
bayrem rem el 9 de Nov. de 2015
  2 comentarios
Walter Roberson
Walter Roberson el 10 de Nov. de 2015
Then your v and your w are not the same size.
Is one of them 2 dimensional and the other 3 dimensional?
Thorsten
Thorsten el 10 de Nov. de 2015
Editada: Thorsten el 10 de Nov. de 2015
I added a solution to this case in my original answer. If something is unclear or does not work, please use comments instead of posting new answers.

Iniciar sesión para comentar.

Categorías

Más información sobre Image Processing Toolbox 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