HAPPY.branching module

HAPPY.branching.branch_classification(thres)[source]

Predict the extent of branching.

Parameters
  • thres (array) – thresholded image to be analysed

  • scale (the scale bar size in pixels/metre) –

Returns

  • skel (array) – skeletonised image

  • is_main (array) – whether the hydride identified is part of the main section or if it is a branch

  • BLF (int/float) – branch length fraction