Apply djkstra algorithm to trace contour
by Su Dongcai
20 Jan 2012
(Updated 25 Jan 2012)
trace single object's contour via the classic shortest path algorithm
|
Watch this File
|
| File Information |
| Description |
please run the follows commands to duplicate the
screenshot:
mex vcTraceContour.cpp %complie only onece
im = imread('h.gif'); [x, y] = traceContour(~im);
Note:
a. The core cpp routine which implement the shortest path routing is in 'cShortestPath', which with computational complexity of O(N*log(N)), where N is the perimeter of the object.
b. the input image must contains only one object(white area.) |
| MATLAB release |
MATLAB 7 (R14)
|
| Other requirements |
matlab image processing toolkit. msvc++6.0 compiler |
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Comments and Ratings (1) |
| 29 Feb 2012 |
Robert
|
|
|
| Updates |
| 25 Jan 2012 |
add 'cal_disconnectPoint.m' to fix a bug, change the title which I misspell 'djkstra' |
|
Contact us at files@mathworks.com