PETMAT is a MATLAB-based app designed to facilitate the preprocessing of Positron Emission Tomography (PET) images using the Statistical Parametric Mapping (SPM) toolbox. The app supports operations like smoothing, co-registration, and normalization of PET images and provides an intuitive interface to work with multiple subject datasets.
- Smoothing: Option to smooth the PET images with different Full Width Half Maximum (FWHM) kernels.
- Co-registration: Interpolation options for aligning PET images with anatomical scans.
- Normalization: Rescale images to standard space with interpolation options.
- Multiple subjects: Support for batch processing multiple subjects at once.
- Progress tracking: Real-time completion percentage indicator during the preprocessing.
-
Clone the repository:
git clone https://github.com/taha-parsayan/PETMAT.git
-
Open MATLAB and navigate to the directory containing
PETMAT.m
. -
Ensure that you have the SPM toolbox installed and added to the MATLAB path. You can download SPM from SPM official website.
-
Run the app by executing:
app = PETMAT;
- MATLAB (R2018b or later recommended)
- SPM12 (must be installed and in the MATLAB path)
- NIfTI PET and anatomical image files
-
Input: Specify the folder containing the subject PET image files and the subject IDs. PET files should be in NIfTI format (
.nii
) and the anatomical scan should be namedT1.nii
. -
Smoothing Options: Choose the desired level of smoothing for the PET images from the list:
- No smoothing
- 5 FWHM
- 8 FWHM
- 10 FWHM
-
Co-registration and Normalization: Select the desired interpolation methods for co-registration and normalization processes.
-
Analyze: Click the "Analyze" button to start the preprocessing pipeline.
-
Exit: Close the app by clicking "Exit."
The processed images will be stored in the same subject directories, with names indicating the operation performed:
coregister_PET.nii
: Co-registered PET imagesstd_T1.nii
: Normalized anatomical scanstd_coregister_PET.nii
: Normalized PET imageSUV.nii
: Standard Uptake Value (SUV) imageSUV_GM.nii
: SUV image masked by gray matter
Contributions are welcome! If you encounter any bugs or have feature suggestions, feel free to open an issue or submit a pull request.
This app utilizes the SPM toolbox, developed by the Wellcome Centre for Human Neuroimaging. For more information, visit the SPM website.