dvid.utils.heal_skeleton

dvid.utils.heal_skeleton(x, root=None, inplace=False)[source]

Merge fragmented skeleton back together.

Uses a minimum spanning tree to connect disconnected components.

Important

Node order might not conform to SWC standard after healing. Use dvidtools.refurbish_table to fix that.

Parameters
  • x (pandas.DataFrame) – SWC table to heal.

  • root (int | None, optional) – New root. If None, will use an existing root.

Returns

SWC

Return type

pandas.DataFrame