get_kspace_slice_loc#
- snake.core.sampling.factories.get_kspace_slice_loc(dim_size, center_prop, accel=4, pdf=VDSpdf.GAUSSIAN, rng=None, order=VDSorder.CENTER_OUT)[source]#
Get slice index at a random position.
- Parameters:
dim_size (int) – Dimension size
center_prop (float or int) – Proportion of center of kspace to continuouly sample
accel (float) – Undersampling/Acceleration factor
pdf (str, optional) – Probability density function for the remaining samples. “gaussian” (default) or “uniform”.
rng (random state)
order (VDSorder)
- Returns:
np.ndarray
- Return type:
array of size dim_size/accel.