4.0

4.0 | 1 rating Rate this file 14 Downloads (last 30 days) File Size: 3.75 KB File ID: #17490
image thumbnail

Contour edition

by Vincent Garcia

 

12 Nov 2007 (Updated 12 Nov 2007)

Edit an object contour using mouse interactions

| Watch this File

File Information
Description

The function ctr_editContour allows to edit
- a point
- a square
- a rectangle
- a circle
- an ellipse
- a polygon
- a spline curve
on a given image using mouse interactions. This function is usefull
to edit an object contour. The output is a matrix Nx2 where N is
the number of sample points of the associated polygon. Moreover, the function
allows to modify an existing point (square, etc.) if the associated
polygon is an input parameter. Run script test.m to have an example.

MATLAB release MATLAB 7.5 (R2007b)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (2)
11 Jan 2008 Nikolay Chumerin

Nice program. Good programming style. Will be useful. All, except splines, works in MATLAB 7. Only one suggestion: user has to add polygon/spline points ALWAYS in consecutive order. It would be much better if your program could add a new keynode in between nearest keynodes.

15 Nov 2009 Vincent Garcia

Nikolay, you are perfectly right. The user has to specify the point (polygon, spline) in consecutive order. This work was initially done to help me in my everyday researches since there were no adapted tools in matlab at that time.

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
contour edition Vincent Garcia 15 Nov 2009 02:42:06
point Vincent Garcia 15 Nov 2009 02:42:18
square Vincent Garcia 15 Nov 2009 02:42:23
rectanle Vincent Garcia 15 Nov 2009 02:42:28
circle Vincent Garcia 15 Nov 2009 02:42:32
ellipse Vincent Garcia 15 Nov 2009 02:42:37
polygon Vincent Garcia 15 Nov 2009 02:42:46
spline Vincent Garcia 15 Nov 2009 02:42:50
segmentation Vincent Garcia 15 Nov 2009 02:42:55
contour initialization Vincent Garcia 15 Nov 2009 02:43:30

Contact us at files@mathworks.com