You could add this on to Rick's script to use imcat to make a montage of the three JPEG images:
imcat -prefix threeviews \
-matrix 3 1 -rgb_out "axialimage axial.$cindex.$thresh.jpg" \
"coronalimage cor.$cindex.$thresh.jpg" \
"sagittalimage sag.$cindex.$thresh.jpg"
cjpeg -quality 91 threeviews.$cindex.$thresh.ppm > threeviews.$cindex.$thresh.jpg
Alternatively, ImageMagick has tools to capture windows by name and make montages. Take a look at this previous posting:
[
afni.nimh.nih.gov]