File Exchange

image thumbnail

Contour edition

version 1.0.0.0 (3.75 KB) by Vincent Garcia
Edit an object contour using mouse interactions

2 Downloads

Updated 12 Nov 2007

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)

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 Compatibility
Created with R2007b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Discover Live Editor

Create scripts with code, output, and formatted text in a single executable document.


Learn About Live Editor