Effacer les filtres
Effacer les filtres

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

1 vue (au cours des 30 derniers jours)
sabeeh
sabeeh le 6 Avr 2011
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

Réponses (2)

Walter Roberson
Walter Roberson le 6 Avr 2011
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 commentaires
sabeeh
sabeeh le 6 Avr 2011
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 le 6 Avr 2011
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?

Connectez-vous pour commenter.


sabeeh
sabeeh le 6 Avr 2011
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 commentaires
sabeeh
sabeeh le 6 Avr 2011
i am sure there will be a way to do it
Walter Roberson
Walter Roberson le 6 Avr 2011
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.

Connectez-vous pour commenter.

Community Treasure Hunt

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

Start Hunting!

Translated by