nmrglue.analysis.segmentation.find_all_connected
- nmrglue.analysis.segmentation.find_all_connected(data, thres, find_segs=False, diag=False)[source]
Find all connected segments.
- Parameters
- datandarray
Data to perform segmentation on.
- thresfloat
Threshold, below this nodes are considered noise.
- find_segsbool, optional
True to return a list of slices for the segments.
- diagbool
True to include diagonal neighbors in connection.
- Returns
- locationslist
List of indicies of local maximum in each segment.
- seg_sliceslist, optional
List of slices which extract a given segment from the data. Only returned when fig_segs is True.