help
help > RE: Export Mask with only 1 Cluster
Aug 10, 2015 05:08 PM | Alfonso Nieto-Castanon - Boston University
RE: Export Mask with only 1 Cluster
Hi Jennifer,
You are right that when exporting a mask the file named "myfile.ROIs.img" contains all suprathreshold clusters. In this file the voxels are labeled by the cluster index (this is an "atlas" file containing potentially multiple ROIs, and in the same format that CONN accepts as an ROI file). From this file you could easily create two files each containing only the first and second clusters, respectively, by typing the following in Matlab's command-ilne:
spm_imcalc myfile.ROIs.img myfile.ROIs_1.img i1==1
spm_imcalc myfile.ROIs.img myfile.ROIs_2.img i1==2
(changing "myfile" to your mask file; use full paths if not currently in the same directory as your files)
Hope this helps
Alfonso
Originally posted by Jennifer Siegel :
You are right that when exporting a mask the file named "myfile.ROIs.img" contains all suprathreshold clusters. In this file the voxels are labeled by the cluster index (this is an "atlas" file containing potentially multiple ROIs, and in the same format that CONN accepts as an ROI file). From this file you could easily create two files each containing only the first and second clusters, respectively, by typing the following in Matlab's command-ilne:
spm_imcalc myfile.ROIs.img myfile.ROIs_1.img i1==1
spm_imcalc myfile.ROIs.img myfile.ROIs_2.img i1==2
(changing "myfile" to your mask file; use full paths if not currently in the same directory as your files)
Hope this helps
Alfonso
Originally posted by Jennifer Siegel :
Hello,
There is probably a simple solution to this, sorry I am a new user.
My results for a ROI to seed voxel produces 2 different clusters. I simply want to create 2 separate masks (1 for each cluster). When I highlight the cluster and then select export mask, it creates a mask that includes both clusters.
Is there a solution to just getting 1 cluster per mask.
Thank you
There is probably a simple solution to this, sorry I am a new user.
My results for a ROI to seed voxel produces 2 different clusters. I simply want to create 2 separate masks (1 for each cluster). When I highlight the cluster and then select export mask, it creates a mask that includes both clusters.
Is there a solution to just getting 1 cluster per mask.
Thank you
Threaded View
| Title | Author | Date |
|---|---|---|
| Jennifer Siegel | Aug 10, 2015 | |
| Alfonso Nieto-Castanon | Aug 10, 2015 | |
| Breanne Kearney | Jul 20, 2023 | |
| Alfonso Nieto-Castanon | Jul 20, 2023 | |
| max345 | Mar 7, 2022 | |
| Alfonso Nieto-Castanon | Mar 8, 2022 | |
| Mayron Pereira Picolo Ribeiro | Jul 13, 2021 | |
| Alfonso Nieto-Castanon | Jul 15, 2021 | |
