sarcgraph.sg.SarcGraph._process_contour

SarcGraph._process_contour(contour)[source]

Computes the center location of a zdisc as well as its two end points given its 2d contour.

Parameters:

contour (np.ndarray, shape=(contour_length, 2)) –

Returns:

zdisc center, end point 1, end point 2

Return type:

np.ndarray, shape=(6,)