how can i retain rgb color to segmented image (binary)?
이전 댓글 표시
i have a result of background substraction (binary image) from the rgb input image (origin)...i wanna retain colors to the object extracted
답변 (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
2015년 11월 9일
0 개 추천
this is the message error
bayrem rem
2015년 11월 9일
0 개 추천

댓글 수: 2
Walter Roberson
2015년 11월 10일
Then your v and your w are not the same size.
Is one of them 2 dimensional and the other 3 dimensional?
카테고리
도움말 센터 및 File Exchange에서 Image Arithmetic에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!