Using 3dcalc to create a binary mask from a parcellation scheme
This recipe uses 3dcalc in AFNI to output a binarized 3D image file (nifti) of a region-of-interest in a parcellation scheme that is indexed by number of parcels.
Ingredients:
Example usage:
This example uses the Harvard Oxford Atlas
|
|
You can also extract all parcels using a .txt file containing a parcel name on each row:
|
|
Recipe made by Shawn Rhoads
These recipes may also be of interest
Automatically Generated Recipe
python r bashExplain briefly what the recipe does. Explain briefly how the recipe works. Provide a citation and link to documentation of any third party … Read More
Convert DICOM files to NIFTI files
This recipe provides code for converting DICOM (.dcm) files to NIFTI (.nii) files dcm2niix This recipe converts dicom to nifti files using … Read More
Mask lower triangle of a Representational Dissimilarity Matrix (RDM)
pythonThis recipe takes a Representational Dissimilarity Matrix (RDM) as a square numpy array, masks the diagonal and lower triangle, and outputs … Read More
Using 3dAFNItoNIFTI to convert AFNI files to NIFTI files
This recipe converts BRIK/HEAD (AFNI) files to NIFTI (.nii) files using 3dAFNItoNIFTI. … Read More