How do i create a draggable object on an image and have ot show up automatically at the beginning?
Mostrar comentarios más antiguos
I want create a draggable skeleton made up of connected line segments on an image, then drag the points to the desired location. I've been using imline, but this only shows one line and i have to create it myself.
I would like the lines to show up on the image and then drag the points to where i want them.
In the end i am looking for the resulting endpoints of each line segments which i can get using getPosition.
Any suggestions...
Respuestas (1)
Vishal Rane
el 29 de Oct. de 2013
1 voto
If by skeleton you mean a closed figure, the you can use imfreehand. Creates a draggable & resizable figure. More specifically for connected line segments you can use imrect or impoly. The addNewPositionCallback function will give the latest position values at any instant.
5 comentarios
birdman.56
el 29 de Oct. de 2013
Image Analyst
el 29 de Oct. de 2013
Call imline() multiple times.
birdman.56
el 29 de Oct. de 2013
Image Analyst
el 29 de Oct. de 2013
Yes, you can pass in starting endpoints for the line segment.
birdman.56
el 29 de Oct. de 2013
Categorías
Más información sobre Build Interactive Tools en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!