help > ROI Drawing
Showing 1-4 of 4 posts
Apr 25, 2014 12:04 PM | Deniz Vatansever - University of York
ROI Drawing
Dear all,
I am trying to visualise a nifti volume on a smooth surface with the aim of showing the ROIs on an opaque brain as shown on the manual. However, every time I click on ROI drawing, all I get are these huge boxes of ROIs drawn for each voxel. Any suggestions?
Thanks
Deniz
I am trying to visualise a nifti volume on a smooth surface with the aim of showing the ROIs on an opaque brain as shown on the manual. However, every time I click on ROI drawing, all I get are these huge boxes of ROIs drawn for each voxel. Any suggestions?
Thanks
Deniz
Apr 25, 2014 01:04 PM | Mingrui Xia
RE: ROI Drawing
Hi Deniz,
To use the ROI drawing, please set the voxels within then same ROI with same value, then input this value in the panel. Could you please provide the pictures or the volume files so that we can know the details.
Best,
Mingrui
To use the ROI drawing, please set the voxels within then same ROI with same value, then input this value in the panel. Could you please provide the pictures or the volume files so that we can know the details.
Best,
Mingrui
Jul 9, 2014 12:07 PM | Deniz Vatansever - University of York
RE: ROI Drawing
Dear Mingrui,
Thank you very much for your reply. I believe that's exactly the information I am missing. How do I set the voxels in the same ROI to have the same value? What do I use? Any help would be much appreciated.
Best,
Deniz
Thank you very much for your reply. I believe that's exactly the information I am missing. How do I set the voxels in the same ROI to have the same value? What do I use? Any help would be much appreciated.
Best,
Deniz
Sep 8, 2014 01:09 PM | Mingrui Xia
RE: ROI Drawing
Hi Deniz,
Try following codes:
hdr = spm_vol('filename.nii');
vol = spm_read_vols(hdr);
vol(vol == n) = t; %set ROI n with value t.
hdr.fname = 'newfilename.nii';
spm_write_vol(hdr,vol);
Try following codes:
hdr = spm_vol('filename.nii');
vol = spm_read_vols(hdr);
vol(vol == n) = t; %set ROI n with value t.
hdr.fname = 'newfilename.nii';
spm_write_vol(hdr,vol);
