File size: 480 Bytes
ff82cbf | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | [
{
"transform": "get_top_k_connected_components",
"apply_to_labels": [1, 2, 3],
"apply_sequentially": false,
"kwargs": {
"top_k": 1,
"morph_cleanup": true,
"morph_cleanup_iterations": 2
}
},
{
"transform": "get_top_k_connected_components",
"apply_to_labels": [4],
"apply_sequentially": true,
"kwargs": {
"top_k": 1,
"morph_cleanup": true,
"morph_cleanup_iterations": 2
}
}
] |