File Exchange

image thumbnail

Contour edition

version 1.0 (3.75 KB) by

Edit an object contour using mouse interactions

1 Download

Updated

View License

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.

Comments and Ratings (2)

Vincent Garcia

Vincent Garcia (view profile)

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.

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.

MATLAB Release
MATLAB 7.5 (R2007b)

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video