Menu

Package that provides tools for brain MRI Deep Learning pre-processing.

Note

This page is a reference documentation. It only explains the function signature, and not how to use it. Please refer to the gallery for the big picture.

brainprep.utils.load_images(img_files, check_same_referential=True)[source]

Load a list of images in a BIDS organisation: check that all images are in the same referential.

Parameters:

img_files : list of str (n_subjects, )

path to images.

Returns:

imgs_arr : array (n_subjects, 1, image_axis0, image_axis1, …)

the generated array.

df : pandas DataFrame

description of the array with columns ‘participant_id’, ‘session’, ‘run’, ‘ni_path’.

Follow us

© 2025, brainprep developers