AFNI Jewel Box AKA Tool Box, Treasure Chest or Miscellaneous Tools
AFNI Jewel Box AKA Tool Box, Treasure Chest or Miscellaneous Tools
AFNI Jewel Box AKA Tool Box, Treasure Chest or Miscellaneous Tools
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
-6-o 3dcalc (continued)Example: make right and left hemisphere masks from with alignedvolumes3dautomask -prefix M epi+<strong>or</strong>ig3dcalc -a M+<strong>or</strong>ig -dicom -expr 'ispositive(x-3.5)' -prefix Mright3dcalc -a M+<strong>or</strong>ig -dicom -expr 'isnegative(x-3.5)' -prefix MleftExample: temp<strong>or</strong>al median smoothing3dcalc -a fred+<strong>or</strong>ig -b 'a[0,0,0,1]' -c 'a[0,0,0,-1]'-expr 'median(a,b,c)'Example: create dataset following a 2D cosine periodic functioncentered around the center of each slice3dcalc -prefix cos0.4 -a 256blank+<strong>or</strong>ig. -expr 'cos(PI* 0.4 * sqrt( (x * x)+ (y * y)) )'