Code covered by the BSD License  

Highlights from
Apply djkstra algorithm to trace contour

Be the first to rate this file! 12 Downloads (last 30 days) File Size: 35.41 KB File ID: #34708
image thumbnail

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

Having compilation issues on MAC OS X Lion with R2011b and Xcode 4.3.

Please login to add a comment or rating.
Updates
25 Jan 2012

add 'cal_disconnectPoint.m' to fix a bug, change the title which I misspell 'djkstra'

Tag Activity for this File
Tag Applied By Date/Time
image processing Su Dongcai 23 Jan 2012 10:34:18
demo Su Dongcai 23 Jan 2012 10:34:18
shortest path Su Dongcai 23 Jan 2012 10:34:18
djstra Su Dongcai 23 Jan 2012 10:34:18
djkstra Su Dongcai 25 Jan 2012 08:49:45

Contact us at files@mathworks.com