Skip to content

Commit 23ef8a8

Browse files
committed
improve graphcut_labeling
- no-GUI mode - specify compactness/fidelity coeffs
1 parent 346900e commit 23ef8a8

File tree

2 files changed

+41
-3
lines changed

2 files changed

+41
-3
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
description: |
2+
Labeling generation with Graph-Cuts Optimisation
3+
tet-mesh: { # case of 'graphcut_labeling' applied on a 'tet-mesh' subfolder
4+
executable: {
5+
path: AUTOMATIC_POLYCUBE,
6+
filename: graphcut_labeling,
7+
command_line: '{mesh} compactness={compactness} fidelity={fidelity} gui=false output={labeling}'
8+
},
9+
output_folder: 'graphcut_labeling_{compactness}_{fidelity}',
10+
arguments: {
11+
input_files: {
12+
mesh: SURFACE_MESH_OBJ
13+
},
14+
output_files: { # 'labeling' is not a part of the command line -> used as suggestion for output file path
15+
labeling: SURFACE_LABELING_TXT
16+
},
17+
others: {
18+
compactness: {
19+
default: 1,
20+
description: "compactness coeff"
21+
},
22+
fidelity: {
23+
default: 3,
24+
description: "fidelity coeff"
25+
}
26+
}
27+
}
28+
}

definitions/algorithms/graphcut_labeling_gui.yml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,28 @@
11
description: |
22
Labeling generation with Graph-Cuts Optimisation
3-
tet-mesh: { # case of 'graphcut_labeling' applied on a 'tet-mesh' subfolder
3+
tet-mesh: { # case of 'graphcut_labeling_gui' applied on a 'tet-mesh' subfolder
44
executable: {
55
path: AUTOMATIC_POLYCUBE,
66
filename: graphcut_labeling,
7-
command_line: '{mesh} {labeling}'
7+
command_line: '{mesh} compactness={compactness} fidelity={fidelity} gui=true'
88
},
9-
output_folder: 'graphcut_labeling',
9+
output_folder: 'graphcut_labeling_%d',
1010
arguments: {
1111
input_files: {
1212
mesh: SURFACE_MESH_OBJ
1313
},
1414
output_files: { # 'labeling' is not a part of the command line -> used as suggestion for output file path
1515
labeling: SURFACE_LABELING_TXT
16+
},
17+
others: {
18+
compactness: {
19+
default: 1,
20+
description: "compactness coeff"
21+
},
22+
fidelity: {
23+
default: 3,
24+
description: "fidelity coeff"
25+
}
1626
}
1727
},
1828
note: "Save the output file as {labeling}"

0 commit comments

Comments
 (0)