NonCartesianFrameDataLoader#

class snake.mrd_utils.loader.NonCartesianFrameDataLoader(filename, dataset_name='dataset', writeable=False, swmr=False)[source]#

Bases: MRDLoader

Non Cartesian Dataloader.

Iterate over the acquisition of the MRD file.

Examples

>>> from mrinufft import get_operator
>>> dataloader =  NonCartesianFrameDataLoader("test.mrd")
>>> for mask, kspace in data_loader:
...     nufft = get_operator("finufft")(traj,
...     shape=dataloader.shape, n_coils=dataloader.n_coils)
...     image = nufft.adj_op(kspace)

Methods

__init__

get_all_dynamic

Get all dynamic data.

get_coil_cov

Load the coil covariance from the dataset.

get_dynamic

Get dynamic data.

get_kspace_frame

Get the k-space frame.

get_phantom

Load the phantom from the dataset.

get_sim_conf

Parse the sim config.

get_smaps

Load the sensitivity maps from the dataset.

iter_frames

Iterate over kspace frames of the dataset.

Attributes

header

Get the header from the mrd file.

log

Logger.

n_acquisition

Number of acquisition in the dataset.

n_coils

Number of coils.

n_frames

Number of frames.

n_sample

Number of samples in a single acquisition.

n_shots

Number of samples in a single acquisition.

Parameters:
get_kspace_frame(idx)[source]#

Get the k-space frame.

Parameters:

idx (int)

Return type:

tuple[ndarray, ndarray]