get_domain_edges

seas.domains.get_domain_edges(domain_ROIs: numpy.ndarray, clear_bg: bool = False, linepad: Optional[int] = None)[source]

Get the edges of the domain map using canny edge detection.

Parameters
  • domain_ROIs – The domain map built by get_domain_map.

  • clear_bg – True if background values should be nan, otherwise background values are 0.

  • linepad – Line padding kernel for thicker borders. Must be an odd integer.

Returns

ROI_timecourses:

A np array of shape (n_domains, t), with the mean of a given domain, i, under ROI_timecourses[i].

mean_filtered:

The frame mean, of shape (t), filtered by the default filtering method.

Return type

output, a dictionary with the following keys