Dicom conversion#
- dcm2niix_wrapper(dicom_folder, nifti_filepath)#
Matlab wrapper for dcm2niix
- Parameters:
dicom_folder (
char array
) – Folder containing the target dicom filesnifti_filepath (
char array
) – Filepath for the result nifti-file. For example /your/path/to/nifti.nii.
Notes
If nifti_filepath doesn’t exist, it is created.
- quadra_ct_initializer(dicom_folder, varargin)#
The function takes as input a folder containing dicom files, and 1) Reads accession number (AC) of the study from the header 2) Converts the dicoms into nifti format 3) Moves the nifti file into base_data_path
Use of this function facilitates gathering of all Quadra-scanned CT images in one place.
- Parameters:
dicom_folder (
char array
) – Folder where dicom files are.varargin{1} (
char array
) – Filepath where to move the converted nifti-file.varargin{2} (
char array
) – Name for the new nifti file.
- Returns:
ct_nii_file – Path to the converted nifti file.
- Return type:
char array
- quadra_pet_initializer(dicom_folder, study_id, output_dir, options)#
The function takes as input a folder containing dicom files, and 1) Converts the dicoms into nifti format 2) Moves the nifti file into nifti_data_path using the specified study_id (e.g. p100232_stress)
Use of this function facilitates gathering of all PET images in one place in turbo-compatible format. The function takes as input a folder containing dicom files, and 1) converts the dicoms into nifti format, and collects metadata from dicom header 2) moves
- Parameters:
dicom_folder (
char array
) – Folder where dicom files are.study_id (
char_array
) – PET ac-nubmer or other identification.output_dir (
char array
) – Files are put to output_dir/ folder.get_metadata_only (
logical
) – Skip dicom to nifti conversion and just return metadata.
- Returns:
pet_nii_file (char array) – Full file path to the converted nifti-file.
dicom_metadata (struct) – Patient and scan information in a struct.