This topic has been discussed previously without a conclusive answer. After some www inquests I realized that it is easily possible to process nii-images using spm functions for matlab. The functions for loading and saving images are:
V = spm_vol(angio_corrected_marked); [Y, XYZ] = spm_read_vols(V); spm_write_vol(V,Y); After the images are loaded they can be processed using matlab functionality. Thus, tcl scripting for those purposes is not necessary. On Fri, 7 Mar 2014 16:37:33 -0500 (EST) Louis Nicholas Vinke <vi...@nmr.mgh.harvard.edu> wrote: > Hi Pfannmoe, > I don't believe it is possible to edit a voxel via tcl scripts. If so the > command would be listed on this page: > > https://surfer.nmr.mgh.harvard.edu/fswiki/TkMeditGuide/TkMeditReference/TkMeditScripting > > -Louis > > On Wed, 5 Mar 2014, Joerg Pfannmoeller wrote: > > > Hello, > > > > if I have selected a voxel in a volume with tkmedit with a tcl script, how > > can I set the voxel value to 0. > > > > Sincerely yours pfannmoe > > > > > > _______________________________________________ > > Freesurfer mailing list > > Freesurfer@nmr.mgh.harvard.edu > > https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer > > > > > > > _______________________________________________ > Freesurfer mailing list > Freesurfer@nmr.mgh.harvard.edu > https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer > > > The information in this e-mail is intended only for the person to whom it is > addressed. If you believe this e-mail was sent to you in error and the e-mail > contains patient information, please contact the Partners Compliance HelpLine > at > http://www.partners.org/complianceline . If the e-mail was sent to you in > error > but does not contain patient information, please contact the sender and > properly > dispose of the e-mail. > _______________________________________________ Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer