Info
この質問は閉じられています。 編集または回答するには再度開いてください。
Bar Graph attached to Live maping
1 回表示 (過去 30 日間)
古いコメントを表示
CODE:
function [red, green, blue] = colorAnalysis(r)
i=1;
img(i)=r.getImage; %Get image from rasberry pie camera on roomba and store in variable 'img'
red = mean(mean(img(:,:,1))); %average red intensity
green = mean(mean(img(:,:,2))); %average green intensity
blue = mean(mean(img(:,:,3))); %average blue intensity
if r.setDriveVelocity(0)
[red(i), green(i), blue(i)] = colorAnalysis(r);
i=i+1;
bar(red(i), green(i), blue(i))
SendData
end
end
Hi, I was wondering if I could place these images or colors onto a live mapping graph. Basically where the picture is taken, the color analysis onto that point of the graph.
1 件のコメント
回答 (1 件)
Prabhan Purwar
2019 年 11 月 18 日
Following link may help:
https://www.mathworks.com/help/matlab/creating_plots/color-analysis-with-bivariate-histogram.html(Color Analysis with Bivariate Histogram)
https://www.mathworks.com/help/nav/test_nav_category_mw_cb483bf7-0321-4a84-8f5c-511855ff92b6.html(SLAM to construct live mapping graph)
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!