Be the first to rate this file! 14 Downloads (last 30 days) File Size: 5.63 KB File ID: #42429

Points and Lines Drawing Tools

by

 

A simple code to implement points and point-to-point lines drawing in a figure.

| Watch this File

File Information
Description

gpoints is the function for drawing points,
gsortline is the function for drawing lines (lines are drawn by points clicking and connected by smoothing), and
DrawGUI is a demo.

- mouse left click to add a point
- mouse left click on a point and hold to
- movemouse right click on a point to remove
- keyboard input "s" to save the drawing
- keyboard input "r" to reset the drawing to previous saving
keyboard input "Delete" to delete the drawing

Required Products MATLAB
MATLAB release MATLAB 7.10 (R2010a)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (2)
24 Feb 2014 Marco Chak Yan Yu

RE: Simon

You have to use DrawDUI( ) like imshow( ).
You have to put an image object as variable inside.

28 Jan 2014 Simon

hello. i tried to run the DrawGUI and i got the following error.
>> DrawGUI
Undefined variable or function I might refer to the function i.

Error in DrawGUI (line 41)
hg=imshow(I);

Contact us