Hi Darren and other Freesurfers
I wrote a tcl script to do just what was described. The one I made gives
the flexibility to name the tiff files based on a prefix that you
specify before
running the script. This way you run the same exact script for as many
pictures as you like, simply changing the prefix before running the script.
Here is what you do. In tksurfer, after you have set up whatever
overlays and/or labels and/or surfaces etc that you like, you enter at
the command prompt
set pre <whatever-you-want>
(where the stuff inside the < > is any file prefix... for instance, set
pre bold_contrast1 )
then you run the following tcl script via the menu for running a script...
UpdateAndRedraw
puts "Taking Snapshots..."
make_lateral_view
rotate_brain_y 90
redraw
set tiff "${pre}_bck.tif"
save_tiff $tiff
make_lateral_view
redraw
set tiff "${pre}_lat.tif"
save_tiff $tiff
rotate_brain_y 180
redraw
set tiff "${pre}_med.tif"
save_tiff $tiff
make_lateral_view
rotate_brain_x 90
redraw
set tiff "${pre}_inf.tif"
save_tiff $tiff
rotate_brain_x 180
redraw
set tiff "${pre}_sup.tif"
save_tiff $tiff
make_lateral_view
rotate_brain_y 270
redraw
set tiff "${pre}_front.tif"
save_tiff $tiff
Darren Weber wrote:
Hi Bruce etal,
I would like a short tcl script to rotate each hemisphere through all the main
views (lateral, medial, dorsal, ventral, anterior, posterior) and output a
graphics file with the name of the subject and the view in the file name. I've
found rotate_brain_[xyz] and save_rgb, but the latter does not permit a file
name for the output graphics. I would like high-resolution graphics for
publications, but the save_rgb outputs about 85-90 dpi images. Is there an
option for vector graphics or high resolution tiff or png images?
Best, Darren
_______________________________________________
Freesurfer mailing list
Freesurfer@nmr.mgh.harvard.edu
https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer
--
Daniel Goldenholz
-----------------------------------------------------
Cell: 617-935-9421 http://people.bu.edu/danielg/
"Mavet v'chaim b'yad halashon"
"Life and death are in the hands of language"
- Proverbs 18:21
_______________________________________________
Freesurfer mailing list
Freesurfer@nmr.mgh.harvard.edu
https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer