MATLAB Answers

coordinates from in the image

1 view (last 30 days)
tedkim on 8 Jul 2020
Answered: KSSV on 8 Jul 2020
Hi, I am trying to find a coordinate of the end of the beam, setting the origin at the rear plane of the beam. (example image shown below)
Is there any way to get an actual (real scale) position coordinate from the image?
I assume it's just a simple geometry, but I want to generate some algorithms by using matlab, since I will need to do this alot.

Answers (1)

KSSV on 8 Jul 2020
Read about ginput, getpts. You can get the points by clocking with mouse, the points you get will be w.r.t to the indices/ dimensions of the image.

Community Treasure Hunt

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

Start Hunting!