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 :

data : ndarray

Data to perform segmentation on.

thres : float

Threshold, below this nodes are considered noise.

find_segs : bool, optional

True to return a list of slices for the segments.

diag : bool

True to include diagonal neighbors in connection.

Returns :

locations : list

List of indicies of local maximum in each segment.

seg_slices : list, optional

List of slices which extract a given segment from the data. Only returned when fig_segs is True.

Previous topic

nmrglue.analysis.segmentation.label_upward_seg

Next topic

nmrglue.analysis.segmentation.find_all_nconnected

This Page