freehanddraw

Draw smooth lines freehand on images or plots; return the handle and xy data of the line object.
9,2K téléchargements
Mise à jour 6 oct. 2005

Afficher la licence

[LINEOBJ,XS,YS] = FREEHANDDRAW(ax_handle,line_options)

Draw a smooth freehand line object on the current axis (default),or on the axis specified by handle in the first input argument. Left-click once to begin drawing, right-click to terminate, or double-click to close contour and terminate.

INPUT ARGUMENTS: First: axis handle (optional)
Additional: valid line property/value pairs

OUTPUT ARGUMENTS: 1) Handle to line object
2) x-data
3) y-data
(Note that output args 2 & 3 can also be extracted from the first output argument.)

Ex: [myobj,xs,ys] = freehanddraw(gca,'color','r','linewidth',3);
freehanddraw('linestyle','--');

Written by Brett Shoelson, PhD
shoelson@helix.nih.gov
3/29/05. Modified 10/05/06 to allow double-click contour closure.

Citation pour cette source

Brett Shoelson (2025). freehanddraw (https://www.mathworks.com/matlabcentral/fileexchange/7347-freehanddraw), MATLAB Central File Exchange. Extrait(e) le .

Compatibilité avec les versions de MATLAB
Créé avec R14SP1
Compatible avec toutes les versions
Plateformes compatibles
Windows macOS Linux
Catégories
En savoir plus sur Images dans Help Center et MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Publié le Notes de version
1.0.0.0

Now allows double-click closure of contours.