@@ -740,19 +740,9 @@ OUT* color_connectivity_graph_26(
740740 return simplified_relabel<OUT>(out_labels, voxels, new_label, equivalences, N);
741741}
742742
743- template <typename OUT>
744- OUT* color_connectivity_graph_6 (
745- const uint8_t * vcg, // voxel connectivity graph
746- const int64_t sx, const int64_t sy, const int64_t sz,
747- OUT* out_labels = NULL ,
748- size_t &N = _dummy_N
749- ) {
750- throw new std::runtime_error (" 6-connectivity requires a 32-bit voxel graph for color_connectivity_graph_6." );
751- }
752-
753- template <typename OUT>
743+ template <typename VCG_t, typename OUT>
754744OUT* color_connectivity_graph_6 (
755- const uint32_t * vcg, // voxel connectivity graph
745+ const VCG_t * vcg, // voxel connectivity graph
756746 const int64_t sx, const int64_t sy, const int64_t sz,
757747 OUT* out_labels = NULL ,
758748 size_t &N = _dummy_N
@@ -1106,7 +1096,7 @@ OUT* color_connectivity_graph_N(
11061096 }
11071097 }
11081098 else if (connectivity == 6 ) {
1109- return color_connectivity_graph_6<OUT>(vcg, sx, sy, sz, out_labels, N);
1099+ return color_connectivity_graph_6<VCG_t, OUT>(vcg, sx, sy, sz, out_labels, N);
11101100 }
11111101 else {
11121102 return color_connectivity_graph_26<OUT>(vcg, sx, sy, sz, out_labels, N);
0 commit comments