sarcgraph.sg.SarcGraph.zdisc_segmentation

SarcGraph.zdisc_segmentation(file_path=None, raw_frames=None, sigma=1.0, min_length=8, save_output=True)[source]

Finds Z-Discs in a video/image and extracts related information, (frame number, center position, end points).

Parameters:
  • file_path (str) – address of the input video/image file

  • raw_frames (np.ndarray, shape=(frames, dim_1, dim_2, channels)) – Raw input image or video given as a 4 dimensional array

  • sigma (float) – Standard deviation for Gaussian kernel

  • min_length (int) – Minimum length for zdisc contours measured in pixels

  • save_output (bool) – by default True

Returns:

Information of all detected zdiscs in every frame. Columns are 'frame' (frame number), 'x' and 'y' (zdiscs center position), 'p1_x', 'p1_y', 'p2_x', 'p2_y' (zdiscs end points positions).

Return type:

pd.DataFrame