how can i get the three component keeping R, G, B value, when the binary “1”, with others setting to 0.
1 回表示 (過去 30 日間)
古いコメントを表示
Muhammad Hammad Malik
2018 年 2 月 10 日
コメント済み: Muhammad Hammad Malik
2018 年 2 月 11 日
i need matlab code, i am doing image processing for red fruit detection. kindly help me in getting R , G , B value when the binary “1”, with others setting to 0. guide me as soon as possible.thanks. @Image Analyst and others pls
0 件のコメント
採用された回答
Walter Roberson
2018 年 2 月 11 日
Use .* to multiply the mask and the color image.
For example,
RGB = imread('peppers.png');
bw = im2binarize(RGB); %find brighter parts
mask = bw(:,:,[1 1 1]); %make the mask 3d
maskedRGB = RGB .* mask;
3 件のコメント
Walter Roberson
2018 年 2 月 11 日
That sounds like a different question. There have been several previous questions about fruit detection that might help. Search for tag:fruit
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!