Hi Juan
probably the easiest thing to do is to create an empty volume (in e.g. freeview) with the same geometry as one of our conformed ones, Then run through every voxel in matlab and if its Euclidean distance to your specified center is less than 2.5cm set it to 1, otherwise set it to 0.
cheers Bruce On Thu, 28 Aug 2014, Diaz Rodriguez, Juan wrote:
I am trying to create a spherical ROI mask in the form of a volume file with 2.5 cm radius. I also have to specify the center of the ROI location. What is the best way to accomplish this? I intend to use this to extract freesurfer cortical thickness values for a region-of-interest (ROI) defined in volume space as described in https://surfer.nmr.mgh.harvard.edu/fswiki/VolumeRoiCorticalThickness