neuror.cut_plane.legacy_detection

Module for the legacy cut plane detection.

As implemented in: https://bbpgitlab.epfl.ch/nse/morphologyrepair/BlueRepairSDK/-/blob/main/BlueRepairSDK/src/repair.cpp#L263

Functions

children_ids

Return the children IDs.

cut_detect

Detect the cut leaves the old way.

cut_mark

Find which sections should be cut.

get_obliques

Returns the oblique roots.

internal_cut_detection

Use cut_detect to get the side of the half space the points live in.

neuror.cut_plane.legacy_detection.children_ids(section)[source]

Return the children IDs.

The original code returns the ids of the descendant sections but this implementation return the Section objects instead.

neuror.cut_plane.legacy_detection.cut_detect(neuron, cut, offset, axis)[source]

Detect the cut leaves the old way.

The cut leaves are simply the leaves that live on the half-space (split along the ‘axis’ coordinate) with the biggest number of leaves

neuror.cut_plane.legacy_detection.cut_mark(sections, cut, offset, side, axis)[source]

Find which sections should be cut.

neuror.cut_plane.legacy_detection.get_obliques(neuron, extended_types)[source]

Returns the oblique roots.

neuror.cut_plane.legacy_detection.internal_cut_detection(neuron, axis)[source]

Use cut_detect to get the side of the half space the points live in.

Then mark points which are children of the apical section.