How user move lines that is drawed in a figure interactivly and extract the data of new location of lines ?
3 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
marya anderson
il 23 Mag 2018
Risposto: sloppydisk
il 3 Giu 2018
After executed some codes; a result will come out with 4 lines that made a rectangular and drawn in a figure (with image background). User wants to move these lines (one or more lines) of rectangular (while they be stayed rectangular) to new location interactivly. The new data of these lines is required for using. Maybe the angles of the lines be changed(no parallel). Based on the attachment picture, first location is in red lines. User wants to change the location of lines to the 2nd location by mouse (green lines). I have the points of edges (cross lines) of lines red lines. I want the points of edges (cross lines) of 2nd location (green lines).
I prefer the function be able to use Matlab coder but it's not necessary.
3 Commenti
Risposta accettata
sloppydisk
il 3 Giu 2018
Take a look at
doc impoly
or
doc imline
For example:
imshow('gantrycrane.png');
impoly
0 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Surface and Mesh Plots in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!