필터 지우기
필터 지우기

Info

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

how to get the xy oordinate of each pixel making up the white line?

조회 수: 1 (최근 30일)
Franklin Prashanth C
Franklin Prashanth C 2018년 3월 21일
마감: MATLAB Answer Bot 2021년 8월 20일
I made a planar robot's dynamic model on simulink, now, how do I make it follow the pattern that I provide. In this case, the white line is my visual input to the system, where, the xy coordinate values of each pixel is to be fed as input continuously to make the robot move accordingly.

답변 (1개)

Matt J
Matt J 2018년 3월 21일
편집: Matt J 2018년 3월 21일
the xy coordinate values of each pixel is to be fed as input continuously to make the robot move accordingly.
That's probably not exactly what you want, if the robot is to interpret the path as an ideal line. The imaged representation of the line is not ideal, since it is actually a white bar with some thickness. You really want to consider the pixels forming the medial line of the white bar.
If you have the Image Processing Toolbox, you can extract that as follows,
[x,y]=bwmorph(yourImage,'skel',inf);

이 질문은 마감되었습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by