-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathREADME.festr
More file actions
29 lines (18 loc) · 811 Bytes
/
README.festr
File metadata and controls
29 lines (18 loc) · 811 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
You need convert program installed (from imagemagick).
Compile with:
g++ -O2 -o segm segm.cc segm_main.cc -lm
use:
./segm <input filename> [option]
input filename - any picture supported by convert (imagemagick).
option (not mandatory):
u - undersegmentation (default option if not specified)
o - oversegmentation (more precise - more colors)
q - quantization (best quality but more color segments)
as a result, result.ppm and result.pgm is produces (you can convert it by
convert result.ppm result.jpg). result.pgm is contour, result.ppm is
color segmented picture.
changelog:
bugs fixed: segm.cc line 951: out of bounds references
tweaks: include headers modified to support nowdays c++ compilers and some casts.
tested and compiled on: debian etch
enjoy this master piece algorithm!