How to mark the point, display lines and measure distance in Matlab?

2 vues (au cours des 30 derniers jours)
rachel kim
rachel kim le 26 Juil 2019
Modifié(e) : rachel kim le 28 Juil 2019
Hello there,
I want to mark the point in the image and check the length.
The attached picture is exactly what I want to do.
1. Click the red dot you want with the mouse.
2. Display a straight line(blue line) connecting the red dot.
3. Automatically creates a green point while bisecting a straight line between two red points.
4. Display a total of five green lines at a 30 degree angle to the blue line based on the green point.
Yesterday I tried to write code using ginput, but since it is a matlab beginner, it is difficult to implement what I want.
Please help me if you have any ideas to help me implement the process I want.
Thanks.. T^T

Réponse acceptée

KSSV
KSSV le 26 Juil 2019
Read about ginput, getpts, plot, imdistline and imline.
  1 commentaire
rachel kim
rachel kim le 26 Juil 2019
Thanks for your answer!!
I wil check and study getpts, plot, imdistline and imline!!!

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Image Processing Toolbox dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by