Bruker import#
Import ParaVision images, raw acquisitions, geometry and experiment observables with MRax’s Python readers. Raw reconstruction is a separate operation.
from mrax.io import import_bruker_study
from mrax.reco import reconstruct_acquisition
study, metadata = import_bruker_study(study_directory)
dataset = study.datasets[0]
result = reconstruct_acquisition(dataset.acquisition, device="cpu")
import_bruker_study returns (study, metadata).
import_bruker_experiment returns (experiment, dataset, model, metadata).
Study folders and standalone exports are accepted, including nonnumeric experiment
names. dataset.data holds the scanner image. dataset.acquisition holds
prepared measurements. Set load_raw_kspace=False for image-only import.
Study import warns and skips incomplete or unsupported experiments while retaining
valid scans. Images remain available when raw data are missing. Metadata reports
raw availability. metadata['import_issues'] lists skipped scans and their
failure reasons. Unknown layouts raise an error. Supply
field_strength_mhz for models that require the scanner field strength.
Geometry and raw data#
Image import applies byte order, slope and offset, and retains frame grouping, voxel spacing and physical affines. Differently oriented slice packages keep per-frame geometry. Reconstruction uses the declared image layout and slice order.
Raw import resolves FID/job records, receiver calibration, encoding events, polarity and nonuniform coordinates. Measured support includes measured zeros. Auxiliary ADC windows are retained. ADC-only data require spatial encoding before MRI reconstruction. See Acquisitions and reconstruction plans for conventions.
Custom definitions#
For acquisition settings outside the built-in profiles, definition_paths loads
additional TOML definitions and profiles selects a compatible named profile.
The contributor section Importer architecture describes how these definitions
are structured.
The GUI reconstructs when a reconstruction view is requested. Scripted and GUI
workflows both use reconstruct_acquisition.