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!