AFNI Message Board

Dear AFNI users-

We are very pleased to announce that the new AFNI Message Board framework is up! Please join us at:

https://discuss.afni.nimh.nih.gov

Existing user accounts have been migrated, so returning users can login by requesting a password reset. New users can create accounts, as well, through a standard account creation process. Please note that these setup emails might initially go to spam folders (esp. for NIH users!), so please check those locations in the beginning.

The current Message Board discussion threads have been migrated to the new framework. The current Message Board will remain visible, but read-only, for a little while.

Sincerely, AFNI HQ

History of AFNI updates  

|
October 29, 2009 09:04PM
Hi Emily,

It isn't clear to me how to put the 3 cardinal images together,
unless you do something like a screen capture. But collecting
them is easy because it's scriptable.

For example, if you have a list of many coordinates and thresholds,
you could do something like the following.

- rick

---------------------------------------------------------------------------
#!/bin/tcsh

set coord_list = ( "-42.6 32 5.9" "21 -3 17.4" ) # FIX
set thresh_list = ( 3.5 5.5 7.5 9.5 11.5 ) # FIX


# ------------------------------------------------------------
# TODO: start afni as shown, and setup colors sub-bricks, etc.
#
# cd SOME_DATA_DIRECTORY
# afni -niml -yesplugouts &
#
# set your underlay and overlay datasets, or script that, too
# also, set your color bar
# ------------------------------------------------------------

# save all of the images
foreach cindex ( `count -digits 2 1 $#coord_list` )
foreach tindex ( `count -digits 2 1 $#thresh_list` )

set coord = "$coord_list[$cindex]"
set thresh = $thresh_list[$tindex]

plugout_drive -com "SET_DICOM_XYZ A $coord" \
-com "SET_THRESHNEW A $thresh" \
-com "SAVE_JPEG axialimage axial.$cindex.$thresh.jpg" \
-com "SAVE_JPEG coronalimage cor.$cindex.$thresh.jpg" \
-com "SAVE_JPEG sagittalimage sag.$cindex.$thresh.jpg" \
-quit

echo saving images at coordinates $coord, threshold $thresh

# give afni a chance to think, may not be needed
sleep 2

end
end
---------------------------------------------------------------------------

Subject Author Posted

brain pics in 3 orientations in one image file

Emily October 29, 2009 06:17PM

Re: brain pics in 3 orientations in one image file

rick reynolds October 29, 2009 09:04PM

Re: brain pics in 3 orientations in one image file

Daniel Glen October 30, 2009 08:55AM