Skip to content

Commit deec030

Browse files
committed
update graphcut_labeling CLI
1 parent 23ef8a8 commit deec030

File tree

2 files changed

+23
-7
lines changed

2 files changed

+23
-7
lines changed

definitions/algorithms/graphcut_labeling.yml

+12-4
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ tet-mesh: { # case of 'graphcut_labeling' applied on a 'tet-mesh' subfolder
44
executable: {
55
path: AUTOMATIC_POLYCUBE,
66
filename: graphcut_labeling,
7-
command_line: '{mesh} compactness={compactness} fidelity={fidelity} gui=false output={labeling}'
7+
command_line: '{mesh} compactness={compactness} fidelity={fidelity} sensitivity={sensitivity} angle_of_rotation={angle_of_rotation} gui=false output={labeling}'
88
},
9-
output_folder: 'graphcut_labeling_{compactness}_{fidelity}',
9+
output_folder: 'graphcut_labeling_{compactness}_{fidelity}_{sensitivity}_{angle_of_rotation}',
1010
arguments: {
1111
input_files: {
1212
mesh: SURFACE_MESH_OBJ
@@ -17,11 +17,19 @@ tet-mesh: { # case of 'graphcut_labeling' applied on a 'tet-mesh' subfolder
1717
others: {
1818
compactness: {
1919
default: 1,
20-
description: "compactness coeff"
20+
description: compactness coeff
2121
},
2222
fidelity: {
2323
default: 3,
24-
description: "fidelity coeff"
24+
description: fidelity coeff
25+
},
26+
sensitivity: {
27+
default: 1e-9,
28+
description: sensitivity for the facet normals pre-processing
29+
},
30+
angle_of_rotation: {
31+
default: 0.05,
32+
description: angle of rotation for the facet normals pre-processing
2533
}
2634
}
2735
}

definitions/algorithms/graphcut_labeling_gui.yml

+11-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ 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} compactness={compactness} fidelity={fidelity} gui=true'
7+
command_line: '{mesh} compactness={compactness} fidelity={fidelity} sensitivity={sensitivity} angle_of_rotation={angle_of_rotation} gui=true'
88
},
99
output_folder: 'graphcut_labeling_%d',
1010
arguments: {
@@ -17,11 +17,19 @@ tet-mesh: { # case of 'graphcut_labeling_gui' applied on a 'tet-mesh' subfolder
1717
others: {
1818
compactness: {
1919
default: 1,
20-
description: "compactness coeff"
20+
description: compactness coeff
2121
},
2222
fidelity: {
2323
default: 3,
24-
description: "fidelity coeff"
24+
description: fidelity coeff
25+
},
26+
sensitivity: {
27+
default: 1e-9,
28+
description: sensitivity for the facet normals pre-processing
29+
},
30+
angle_of_rotation: {
31+
default: 0.05,
32+
description: angle of rotation for the facet normals pre-processing
2533
}
2634
}
2735
},

0 commit comments

Comments
 (0)