how many pixels are moved when servo is moved one degree??
조회 수: 1 (최근 30일)
이전 댓글 표시
i am using a servo motor and a camera fixed on it.during real time, i take an image with an help of camera using getsnapshot command.the image i get is [200x200].now i move the servo motor one degree to right.now i want to find how many pixels have been shifted to right when servo motor is moved one degree.please help me.actually i want to find how many pixels are shifted when servo is moved one degree
댓글 수: 0
답변 (2개)
Walter Roberson
2011년 4월 6일
Surely everything movable on the motor will be moved??
"degree" is an angular measurement, not a measurement of distance (not unless the distance is being measured at a fixed radius.)
Unless you give more information, I don't think we are going to be able to answer your question. Perhaps you could make a pair of images available ?
댓글 수: 3
Walter Roberson
2011년 4월 6일
Is the motor moving one *degree* or is it moving one *step* in a straight line such that the camera remains at the same angle to the scene?
sabeeh
2011년 4월 6일
댓글 수: 5
Walter Roberson
2011년 4월 6일
There is no way to do what you want without image processing of _some_ kind. *Any* examination of the content of an image is "image processing". Image processing does not necessarily require segmentation; segmentation is not likely to help in your situation. You need to identify foreground from background, which you will probably do using differences in pixel intensities.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!