I am using the following to check coregistration between anatomical and functional image for 300 subjects. I am trying to change the opacity of the overlay functional image.This is usually achieved via the GUI interface by changing the value of the 6th arrow on the right hand side of the image with values ranging from 9 to 0.
By specifying opacity=4 in OPEN_WINDOW I don’t get the level of transparency which I would like to achieve and the functional image is completely opaque. How can I proceed to obtain image where functional image overlaid is transparent?
Thanks for swift reply! I saw @chauffeur_afni but would be great if I got things working with the current script, I am also confused on why it is not working. See attached for the image I got.
Matilde
Thanks, unfortunately this does not fix the problem. But I am able to have the mont option working , which I believe works via the same mechanism as opacity
for example
afni
-com “SWITCH_UNDERLAY brainmask.nii”
-com “SWITCH_OVERLAY functional.nii.gz”
-com ‘SET_XHAIRS A.OFF’
-com ‘OPEN_WINDOW A.sagittalimage mont=6x6:3’
-com “SAVE_JPEG A.sagittalimage $basedir/Sagittal/Coreg_${sub}.jpg”
-com “QUIT”
I appreciate the @chaffeur afni but I am running on a server where old versionof afni is installed and don’t have much room for updating versions etc at the moment. (Version AFNI_2011_12_21_1014 [[Precompiled binary linux-xorg7_64: Jan 15 2014]]
I temporarily sorted by changing afni environment with
export AFNI_DEFAULT_OPACITY=4
in this way the following command
Ummm, 2014 is a lifetime ago. I would have to strongly recommend updating AFNI on that server!!
I don’t know why opacity is not working as it should… It could be something related to that specific version (either the year or that year with the linux-xorg binaries), in which case it won’t be resolvable.
Do you have another computer with a more uptodate AFNI on it to try to use? You could download the data and try that?
–pt
The
National Institute of Mental Health (NIMH) is part of the National Institutes of
Health (NIH), a component of the U.S. Department of Health and Human
Services.