visbrain.objects.RoiObj.get_centroids

RoiObj.get_centroids(select)[source][source]

Get the (x, y, z) coordinates of the center of a ROI.

Parameters:
select : list

List of indices of ROIs. Must be a list or tuple of integers.

Returns:
xyz : array_like

Array of shape (n_indiced, 3) which contains the (x, y, z) coordinates of each ROI center.