|
10 years ago | |
---|---|---|
data | 11 years ago | |
COPYING | 12 years ago | |
Makefile | 12 years ago | |
README.md | 10 years ago | |
compileFelzenszwalbSegmentation.m | 11 years ago | |
convolve.h | 12 years ago | |
demoFelzenszwalbSegmentation.m | 11 years ago | |
disjoint-set.h | 12 years ago | |
filter.h | 12 years ago | |
image.h | 12 years ago | |
imconv.h | 12 years ago | |
imutil.h | 12 years ago | |
initWorkspaceSegmentation.m | 10 years ago | |
misc.h | 12 years ago | |
pnmfile.h | 12 years ago | |
segment-graph.h | 11 years ago | |
segment-image-labelOutput.h | 11 years ago | |
segment-image.h | 11 years ago | |
segment.cpp | 12 years ago | |
segmentFelzenszwalb.cpp | 11 years ago | |
segmentFelzenszwalb.m | 12 years ago |
simply run
compileFelzenszwalbSegmentation.m
To make Matlab familiar with all relevant paths (there are only 2 currently) go to the root folder and execute
initWorkspaceSegmentation.m
1) Run
demoFelzenszwalbSegmentation.m
which requires Matlabs GUI to show images and segmentation results
2) Inspect the demo file to learn how to setup variables, and how to call the underlying mex functions
Implementation of the segmentation algorithm described in:
Efficient Graph-Based Image Segmentation Pedro F. Felzenszwalb and Daniel P. Huttenlocher International Journal of Computer Vision, 59(2) September 2004.
The program [segment.cpp, note by A. Freytag] takes a color image (PPM format) and produces a segmentation with a random color assigned to each region.
1) Type make
to compile segment.cpp
2) Run segment sigma k min input output
.
The parameters are: (see the paper for details)
Typical parameters are sigma = 0.5, k = 500, min = 20. Larger values for k result in larger components in the result.
NOTE ( by Alexander Freytag )