Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Bar Graph attached to Live maping

조회 수: 1 (최근 30일)
Alvin Winter
Alvin Winter 2019년 10월 6일
마감: MATLAB Answer Bot 2021년 8월 20일
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
Walter Roberson
Walter Roberson 2019년 10월 6일
The above appears to be infinite recursion on colorAnalysis() ?

답변 (1개)

Prabhan Purwar
Prabhan Purwar 2019년 11월 18일

제품


릴리스

R2019b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by