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
Return the children IDs. |
|
Detect the cut leaves the old way. |
|
Find which sections should be cut. |
|
Returns the oblique roots. |
|
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.
Note
This is a re-implementation of: https://bbpgitlab.epfl.ch/nse/morphologyrepair/BlueRepairSDK/-/blob/main/BlueRepairSDK/src/helper_dendrite.cpp#L111
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.
Note
This is a re-implementation of: https://bbpgitlab.epfl.ch/nse/morphologyrepair/BlueRepairSDK/-/blob/main/BlueRepairSDK/src/helper_dendrite.cpp#L654
- neuror.cut_plane.legacy_detection.get_obliques(neuron, extended_types)[source]¶
Returns the oblique roots.
Note
This is a re-implementation of: https://bbpgitlab.epfl.ch/nse/morphologyrepair/BlueRepairSDK/-/blob/main/BlueRepairSDK/src/helper_dendrite.cpp#L212
- 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.
Note
This is a re-implementation of: https://bbpgitlab.epfl.ch/nse/morphologyrepair/BlueRepairSDK/-/blob/main/BlueRepairSDK/src/repair.cpp#L263