how can i retain rgb color to segmented image (binary)?
Mostrar comentarios más antiguos
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)
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
el 9 de Nov. de 2015
0 votos
this is the message error
bayrem rem
el 9 de Nov. de 2015
0 votos

2 comentarios
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?
Categorías
Más información sobre Image Segmentation en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!