필터 지우기
필터 지우기

how many pixels are moved when servo is moved one degree??

조회 수: 1 (최근 30일)
sabeeh
sabeeh 2011년 4월 6일
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

답변 (2개)

Walter Roberson
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
sabeeh
sabeeh 2011년 4월 6일
just give me an idea to calculate the pixels moved.suppose i want to know how many pixels the centre pixel of the image is moved when servo is moved...dont be very specific
Walter Roberson
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
sabeeh 2011년 4월 6일
i was thinking to find the center pixel of image and then somehow label it.when servo will move,i will find number of pixels the center pixel which i had labelled earlier has moved..how is this approach...please help me out
  댓글 수: 5
sabeeh
sabeeh 2011년 4월 6일
i am sure there will be a way to do it
Walter Roberson
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!

Translated by