idx_in_ellipse#
- snake.core.phantom.shepp_logan.idx_in_ellipse(E, shape)[source]#
Return array of index who fit in the ellipsoid.
- Parameters:
E (np.array) – 1d array defining the coordinate and size of the ellipsoid.
shape (tuple) – shape of the complete volume.
- Returns:
A boolean mask of index which are in the ellipse.
- Return type:
np.ndarray