JiscMail Logo
Email discussion lists for the UK Education and Research communities

Help for FSL Archives


FSL Archives

FSL Archives


FSL@JISCMAIL.AC.UK


View:

Message:

[

First

|

Previous

|

Next

|

Last

]

By Topic:

[

First

|

Previous

|

Next

|

Last

]

By Author:

[

First

|

Previous

|

Next

|

Last

]

Font:

Proportional Font

LISTSERV Archives

LISTSERV Archives

FSL Home

FSL Home

FSL  December 2012

FSL December 2012

Options

Subscribe or Unsubscribe

Subscribe or Unsubscribe

Log In

Log In

Get Password

Get Password

Subject:

Re: overlay / slicer positive / negative

From:

wolf zinke <[log in to unmask]>

Reply-To:

FSL - FMRIB's Software Library <[log in to unmask]>

Date:

Thu, 20 Dec 2012 10:51:19 +0100

Content-Type:

multipart/mixed

Parts/Attachments:

Parts/Attachments

text/plain (74 lines) , vol_slicer (734 lines)

Hi BettyAnn,

I wrote me a little tool to create some overlay png files in a simple 
way, wrapping around the frustrating slicer part. So maybe this could 
help you (hope it does not cause further problems and frustration though).

See the help information to see, how it works. In your case, the -neg 
option might be the desire one. Let me know, if you have further 
questions or come accross bugs...

good luck,
wolf


On 12/20/2012 10:09 AM, Mark Jenkinson wrote:
> Dear BettyAnn,
>
> Sorry to hear about your long-term frustration.
> The easiest way to achieve your goal is to use the Renderstats GUI which will output the desired overlay command.  For instance, I just ran one to do the sort of thing you are saying and it produced the command:
>
> /usr/local/fsl/bin/overlay 1 0 /Users/mark/testdir/example_func 0.000000 8836.757812 /Users/mark/testdir/zstat1 2.5 15.546515 /Users/mark/testdir/zstat1 -2.5 -10 /Users/mark/testdir/outputimage
>
> This command was displayed in the terminal window, so you can then use this for subsequent scripting calls or just avoid the GUI thereafter.
>
> I suspect that your command were probably failing just due to the order of the negative thresholds (which are confusing).
>
> Once you have this image file output from overlay, slicer works straightforwardly (no need to specify any colourmap options at all).
>
> All the best,
> 	Mark
>
>
>
>
> On 19 Dec 2012, at 20:56, bettyann <[log in to unmask]> wrote:
>
>> Okay, no really.  After years of trying (and I'm not kidding), I still cannot create an overlay/slicer .png displaying both positive voxels in red-yellow scale and negative voxels in blue-white scale.
>>
>> Searching the archives, I see replies that imply, 'Oh, this is simple,' or 'Just do [blah].'  Sigh.
>>
>> I've tried a few things but below is the least frantic rendition:
>>
>> rng1=`fslstats zstat1 -l  0.0001 -R`
>> rng2=`fslstats zstat1 -u -0.0001 -R`
>> echo $rng1     #  0.000111 10.265674
>> echo $rng2     # -5.066993 -0.000104
>>
>> oVol=zstat1_render_posNeg
>> cmd="overlay 1 0 ../example_func -a zstat1 $rng1 zstat1 $rng2 $oVol"
>> echo $cmd
>> # overlay 1 0 ../example_func -a zstat1 0.000111 10.265674 zstat1 -5.066993 -0.000104 zstat1_render_posNeg
>> eval $cmd
>>
>> fslstats zstat1_render_posNeg -R
>> 11.559369 45.564034
>>
>> I get it that the 'composite' volume does not have negative values.  I am assuming that some range of voxel values in the composite volume represents the positive values in the original volume and another range represents the negative values.  But how do I tell slicer to use Red-Yellow for some range (that I don't know) and Blue-White for some other range (that I also do not know)?
>>
>> These commands do not do it:
>> slicer zstat1_render_posNeg -S 2 750 zstat1_render_posNeg.png
>> slicer zstat1_render_posNeg -l [anyLUT] -S 2 750 zstat1_render_posNeg.png
>>
>> Do I need to construct my own color table -- half red; half blue -- to match the two ranges in the output from overlay?
>>
>> If it matters, I am running FSL v4.1.8.
>>
>> I would be very, very grateful if someone could help me.
>>
>> Hang doggedly,
>> - BettyAnn
>>




#!/bin/bash # Usage() { cat << EOF     Usage: vol_slicer <bg_img> [OPTIONS]     OPTIONS:             -x -y -z specify set of slices to save as image (e.g. -z "2 4 6 8 10")                                 numbers > 1 specify slicenumbers, numbers < 1 specify proportions.             -cog, -max determines location of Center of gravity or voxel with maximum value                                 as voxel coordinate, will override specifications for each voxel location             -set set of proportional slice numbers that are used for all three dimensions.                                 this option is only effective when -x/y/z are not specified.             -stat <flnm> statistical map             -trans transparent colors             -pxl number of pixels seperating two images (default:10)             -thick increase width of slice line             -neg render also the negative stat map             -noside do not show right side label             -nomm print slice distance from center voxel             -cx for single voxel display overlay slice selections on stat maps             -s <sclfctr> scaling factor             -bgint <min max> intensity range for the background image             -statrng <min max> scaling theshold             -out <outname> filename for output data             -keep do not delete temporary files             ###########################################################             ## (c) wolf zinke (2008) - part of the MaFIA toolbox ##             ## for comments and questions: [log in to unmask] ##             ########################################################### EOF     exit 1 } # ToDo" Get Rid Of xstr/ystr/zstr ... #----------------------------------------------------------------------# if [ $# -lt 1 ]; then     Usage else     bg_img=`remove_ext $1`;     shift fi text2png(){     if [ $# -lt 3 ]     then         ptsz=14     else         ptsz=$3     fi     echo "$1" | convert -font Palatino-Bold -background black -pointsize $ptsz -fill LightYellow -trim text:- $2 } #----------------------------------------------------------------------# outnm="${bg_img}_sliceselection.png" bgint=`fslstats $bg_img -r` smint="3 10" scl=1 pxl=10 sdlbl="" trans=0 do_keep=0 do_neg=0 do_thick=0 tmpdir=`tmpnam tmpPSC` xstr="" ystr="" zstr="" slcwdth=1 statmap="" getsmint=1 doMM=1 doCX=0 SglVXL=1 def_set="0.2 0.3 0.4 0.5 0.6 0.7 0.8" get_coord=0 usedefset=1 ovly_stat=0 rm $tmpdir #----------------------------------------------------------------------# # get options while [ $# -gt 0 ] ; do     case $1 in        -out) outnm=$2                 shift 2                 ;;        -stat) statmap=`remove_ext $2`                 ovly_stat=1                 shift 2                 ;;         -x) xstr="$1 '$2'"                 xslc="$2"                 usedefset=0                 shift 2                 ;;         -y) ystr="$1 '$2'"                 yslc="$2"                 usedefset=0                 shift 2                 ;;         -z) zstr="$1 '$2'"                 zslc="$2"                 usedefset=0                 shift 2                 ;;       -set) def_set=$2                 shift 2                 ;;       -max) get_coord=1                 coorstr="-x"                 usedefset=0                 shift                 ;;       -cog) get_coord=1                 coorstr="-C"                 usedefset=0                 shift                 ;;         -s) scl=$2                 shift 2                 ;;        -nomm) doMM=0                 shift                 ;;        -cx) doCX=1                 shift                 ;;        -bgint) bgint="$2 $3"                 shift 3                 ;;      -statrng) smint="$2 $3"                 getsmint=0                 shift 3                 ;;       -thick) do_thick=1                 slcwdth=3                 shift                 ;;       -trans) trans=1                 shift                 ;;      -noside) sdlbl="-u"                 shift                 ;;        -neg) do_neg=1                 shift                 ;;        -pxl) pxl=$2                 shift 2                 ;;        -keep) do_keep=1                 shift                 ;;           -*) echo "Wrong option: <$1>"                 echo ""                 Usage                 ;;            *) break                 ;;     esac done #----------------------------------------------------------------------# # determine voxel location of CoG or Max if [ $get_coord -eq 1 ] then     if [ $ovly_stat -eq 1 ]     then         coords=`fslstats $statmap $coorstr`     echo "fslstats $statmap $coorstr"     else         coords=`fslstats $bg_img $coorstr`     echo "fslstats $bg_img $coorstr"     fi     X=`echo $coords | awk '{print $1}'| xargs printf "%1.0f"`     Y=`echo $coords | awk '{print $2}'| xargs printf "%1.0f"`     Z=`echo $coords | awk '{print $3}'| xargs printf "%1.0f"`     echo "slice coordinates: X:$X Y:$Y Z:$Z"     if [ $(echo "$X+$Y+$Z" | bc -l) -eq 0 ]     then         echo "WARNING: Not data available to determine CoG or Max!"         xslc="0.5"         yslc="0.5"         zslc="0.5"         xstr="0.5"         ystr="0.5"         zstr="0.5"     else         xstr="-x '$X'"         xslc="$X"         ystr="-y '$Y'"         yslc="$Y"         zstr="-z '$Z'"         zslc="$Z"     fi fi mkdir $tmpdir; slcfl=`echo $outnm | sed -e 's/.png/.slc/g'` echo "bgimg: $bg_img" > $slcfl slcsc=`echo "$scl / 2" | bc -l` if [ $(($doCX+$do_neg)) -eq 2 ] then     echo "WARNING: Can not do crosshair overlay if -neg option is used!"     doCX=0 fi #----------------------------------------------------------------------# Xsz=`fslval $bg_img dim1` Ysz=`fslval $bg_img dim2` Zsz=`fslval $bg_img dim3` numX=0 numY=0 numZ=0 # if no slices are specified, use the default set of relative slices # if [ "Z$xstr$ystr$zstr" == 'Z' ] if [ $usedefset -eq 1 ] then     xslc=""     yslc=""     zslc=""     for cslc in $def_set     do         cxn=`echo "$Xsz * $cslc" | bc -l | xargs printf "%1.0f"`         xslc="$xslc $cxn"         cyn=`echo "$Ysz * $cslc" | bc -l | xargs printf "%1.0f"`         yslc="$yslc $cyn"         czn=`echo "$Zsz * $cslc" | bc -l | xargs printf "%1.0f"`         zslc="$zslc $czn"     done     xstr="-x '$xslc'"     ystr="-y '$yslc'"     zstr="-z '$zslc'" fi #----------------------------------------------------------------------# # test whether just a single voxel is specified and # if proportional slices are specified determine corresponding slice number # x if [ "$xstr" ] then     nslc=""     for cslc in $xslc     do         if [ $(echo "$cslc < 1" | bc -l) -eq 1 ]         then             cnslc=$(echo "$Xsz * $cslc" | bc -l | xargs printf "%1.0f" )             nslc="$nslc$cnslc "         else             nslc="$nslc$cslc " # strange things happen when the space is put elsewhere         fi         numX=$(($numX+1))     done     xslc=$nslc     xstr="-x '$xslc'" fi if [ ! $numX -eq 1 ] then     SglVXL=0 fi # y if [ "$ystr" ] then     nslc=""     for cslc in $yslc     do         if [ $(echo "$cslc < 1" | bc -l) -eq 1 ]         then             cnslc=$(echo "$Ysz * $cslc" | bc -l | xargs printf "%1.0f" )             nslc="$nslc$cnslc "         else             nslc="$nslc$cslc " # strange things happen when the space is put elsewhere         fi         numY=$(($numY+1))     done     yslc=$nslc     ystr="-y '$yslc'" fi if [ ! $numY -eq 1 ] then     SglVXL=0 fi # z if [ "$zstr" ] then     nslc=""     for cslc in $zslc     do         if [ $(echo "$cslc < 1" | bc -l) -eq 1 ]         then             cnslc=$(echo "$Zsz * $cslc" | bc -l | xargs printf "%1.0f" )             nslc="$nslc$cnslc "         else             nslc="$nslc$cslc " # strange things happen when the space is put elsewhere         fi         numZ=$(($numZ+1))     done     zslc=$nslc     zstr="-z '$zslc'" fi if [ ! $numZ -eq 1 ] then     SglVXL=0 fi #----------------------------------------------------------------------# # get the slice representation fslmaths $bg_img -mul 0 -add 1 $tmpdir/all_slices -odt char png_str="" set_cnt=0 if [ $SglVXL -eq 1 ] then     fslmaths $bg_img -mul 0 -add 1 $tmpdir/allone -odt char     if [ $do_thick -eq 1 ]     then         cX=$(($xslc-1))         cY=$(($yslc-1))         cZ=$(($zslc-1))     else         cX=$xslc         cY=$yslc         cZ=$zslc     fi     fslmaths $tmpdir/all_slices -roi 0 $Xsz $cY $slcwdth $cZ $slcwdth 0 1 $tmpdir/xslcsel     fslmaths $tmpdir/all_slices -roi $cX $slcwdth 0 $Ysz $cZ $slcwdth 0 1 $tmpdir/yslcsel     fslmaths $tmpdir/all_slices -roi $cX $slcwdth $cY $slcwdth 0 $Zsz 0 1 $tmpdir/zslcsel     fslmaths $tmpdir/xslcsel -add $tmpdir/yslcsel -add $tmpdir/zslcsel $tmpdir/slcsel     overlay 0 1 $bg_img $bgint $tmpdir/slcsel 1 4 $tmpdir/slc_vol     slicer $tmpdir/slc_vol -s $slcsc $sdlbl -x -$xslc $tmpdir/selX.png -y -$yslc $tmpdir/selY.png -z -$zslc $tmpdir/selZ.png     convert $tmpdir/selX.png -trim $tmpdir/selX.png     convert $tmpdir/selY.png -trim $tmpdir/selY.png     convert $tmpdir/selZ.png -trim $tmpdir/selZ.png fi #----------------------------------------------------------------------# # prepare overlay image if [ $ovly_stat -eq 1 ] then     if [ $getsmint -eq 1 ]     then         if [ $do_neg -eq 1 ]         then             smint=`fslstats $statmap -a -r`         else             smint=`fslstats $statmap -l 0 -r`         fi     fi     rngmin=$(echo "$smint" | cut -d' ' -f1)     rngmax=$(echo "$smint" | cut -d' ' -f2)     rngdiff=$(echo "$rngmax>$rngmin" | bc -l)     if [ $rngdiff -eq 0 ]     then         imcp $bg_img $tmpdir/curr_img     else         statstr=""         cnt=0         for cstat in $statmap         do             cnt=$(($cnt+1))             statstr="$statstr $cstat $smint"         done     #echo "$statstr"         if [ $do_neg -eq 1 ]         then             if [ $cnt -gt 1 ]             then                 echo ""                 echo "WARNING: negative map could only be used with one statistical map as input"                 echo ""             else                 fslmaths $statmap -mul -1 $tmpdir/negmap                 statstr="$statstr $tmpdir/negmap $smint"             fi         fi         if [ $(($doCX+$cnt)) -gt 2 ]         then             echo "WARNING: Can not do crosshair overlay if more stat maps are used!"             doCX=0         fi         if [ $doCX -eq 1 ]         then             overlay $trans 0 $bg_img $bgint $statstr $tmpdir/slcsel 1 4 $tmpdir/curr_img         else             overlay $trans 0 $bg_img $bgint $statstr $tmpdir/curr_img         fi     fi     echo "statmap: $statmap" >> $slcfl     echo "statrange: $smint " >> $slcfl else     imcp $bg_img $tmpdir/curr_img fi #----------------------------------------------------------------------# # X if [ $numX -gt 0 ] then     origMM=`fslhd $bg_img | grep sto_xyz:1 | awk ' { if($5>=0) { print $5} else {print $5*-1 }}'`     vxlres=`fslval $bg_img pixdim1`     origVXL=` echo "$origMM / $vxlres" | bc -l | awk ' { printf "%.0f\n", $0 } '`     xstr="X slices [mm]:" # xslices=""     if [ $SglVXL -eq 0 ]     then         fslmaths $tmpdir/all_slices -mul 0 $tmpdir/xslcsel -odt char     fi     cnt=0     for cslc in $xslc     do         if [ $cslc -gt $Xsz ]         then             echo ""             echo "ERROR: Selected slice <$cslc> exceed number of slices in X dimension"             echo ""             rm -r $tmpdir             exit         fi         slicer $tmpdir/curr_img -s $scl -u -x -$cslc $tmpdir/X_${cslc}.png         cvxlMM=`echo "($origVXL - $cslc) * $vxlres" | bc -l | awk ' { printf "%6.2f\n", $0 } ' `         mmX=$cvxlMM         xstr=`echo "$xstr $cvxlMM;"`         if [ $doMM -eq 1 ]         then             montage -geometry +0+0 -font Palatino-Bold -background black -fill LightYellow -pointsize 12 -label "$cvxlMM mm" $tmpdir/X_${cslc}.png $tmpdir/X_${cslc}.png         fi         cnt=$(($cnt+1))         if [ $cnt -eq 1 ]         then             cp $tmpdir/X_${cslc}.png $tmpdir/Xset.png         else             pngappend $tmpdir/Xset.png + $pxl $tmpdir/X_${cslc}.png $tmpdir/Xset.png         fi         if [ $do_thick -eq 1 ]         then             cslc=$(($cslc-1))         fi         if [ $SglVXL -eq 0 ]         then             fslmaths $tmpdir/all_slices -roi $cslc $slcwdth 0 $Ysz 0 $Zsz 0 1 $tmpdir/tmp_slcsel             fslmaths $tmpdir/xslcsel -add $tmpdir/tmp_slcsel $tmpdir/xslcsel         fi     done     echo "$xstr"     echo "$xstr" >> $slcfl     if [ $SglVXL -eq 0 ]     then         overlay 0 1 $bg_img $bgint $tmpdir/xslcsel 1 4 $tmpdir/Xslc_vol         slicer $tmpdir/Xslc_vol -s $slcsc $sdlbl -y 0.5 $tmpdir/XselY.png -z 0.5 $tmpdir/XselZ.png         pngappend $tmpdir/XselY.png - 0 $tmpdir/XselZ.png $tmpdir/Xsel.png         pngappend $tmpdir/Xsel.png + $pxl $tmpdir/Xset.png $tmpdir/Xset.png     fi     png_str="$png_str $tmpdir/Xset.png"     set_cnt=$(($set_cnt+1)) fi # Y if [ $numY -gt 0 ] then     origMM=`fslhd $bg_img | grep sto_xyz:2 | awk ' { if($5>=0) { print $5} else {print $5*-1 }}'`     vxlres=`fslval $bg_img pixdim2`     origVXL=` echo "$origMM / $vxlres" | bc -l | awk ' { printf "%.0f\n", $0 } '`     ystr="Y slices [mm]:" # yslices=""     if [ $SglVXL -eq 0 ]     then         fslmaths $tmpdir/all_slices -mul 0 $tmpdir/yslcsel -odt char     fi     cnt=0     for cslc in $yslc     do         if [ $cslc -gt $Ysz ]         then             echo ""             echo "ERROR: Selected slice <$cslc> exceed number of slices in Y dimension"             echo ""             rm -r $tmpdir             exit         fi         slicer $tmpdir/curr_img -s $scl -u -y -$cslc $tmpdir/Y_${cslc}.png         cvxlMM=`echo "($cslc - $origVXL) * $vxlres" | bc -l | awk ' { printf "%6.2f\n", $0 } ' `         mmY=$cvxlMM         ystr=`echo "$ystr $cvxlMM;"`         if [ $doMM -eq 1 ]         then             montage -geometry +0+0 -font Palatino-Bold -background black -fill LightYellow -pointsize 12 -label "$cvxlMM mm" $tmpdir/Y_${cslc}.png $tmpdir/Y_${cslc}.png         fi         cnt=$(($cnt+1))         if [ $cnt -eq 1 ]         then             cp $tmpdir/Y_${cslc}.png $tmpdir/Yset.png         else             pngappend $tmpdir/Yset.png + $pxl $tmpdir/Y_${cslc}.png $tmpdir/Yset.png         fi         if [ $do_thick -eq 1 ]         then             cslc=$(($cslc-1))         fi         if [ $SglVXL -eq 0 ]         then             fslmaths $tmpdir/all_slices -roi 0 $Xsz $cslc $slcwdth 0 $Zsz 0 1 $tmpdir/tmp_slcsel             fslmaths $tmpdir/yslcsel -add $tmpdir/tmp_slcsel $tmpdir/yslcsel         fi     done     echo "$ystr"     echo "$ystr" >> $slcfl     if [ $SglVXL -eq 0 ]     then         overlay 0 1 $bg_img $bgint $tmpdir/yslcsel 1 4 $tmpdir/Yslc_vol         slicer $tmpdir/Yslc_vol -s $slcsc $sdlbl -x 0.4 $tmpdir/YselX.png -z 0.6 $tmpdir/YselZ.png         pngappend $tmpdir/YselX.png - 0 $tmpdir/YselZ.png $tmpdir/Ysel.png         pngappend $tmpdir/Ysel.png + $pxl $tmpdir/Yset.png $tmpdir/Yset.png     fi     png_str="$png_str $tmpdir/Yset.png"     set_cnt=$(($set_cnt+1)) fi # Z if [ $numZ -gt 0 ] then     origMM=`fslhd $bg_img | grep sto_xyz:3 | awk ' { if($5>=0) { print $5} else {print $5*-1 }}'`     vxlres=`fslval $bg_img pixdim3`     origVXL=` echo "$origMM / $vxlres" | bc -l | awk ' { printf "%.0f\n", $0 } '`     zstr="Z slices [mm]:" # zslices=""     if [ $SglVXL -eq 0 ]     then         fslmaths $tmpdir/all_slices -mul 0 $tmpdir/zslcsel -odt char     fi     cnt=0     for cslc in $zslc     do         if [ $cslc -gt $Zsz ]         then             echo ""             echo "ERROR: Selected slice <$cslc> exceed number of slices in Z dimension"             echo ""             rm -r $tmpdir             exit         fi         slicer $tmpdir/curr_img -s $scl -u -z -$cslc $tmpdir/Z_${cslc}.png         cvxlMM=`echo "($cslc - $origVXL) * $vxlres" | bc -l | awk ' { printf "%6.2f\n", $0 } ' `         mmZ=$cvxlMM         zstr=`echo "$zstr $cvxlMM;"`         if [ $doMM -eq 1 ]         then             montage -geometry +0+0 -font Palatino-Bold -background black -fill LightYellow -pointsize 12 -label "$cvxlMM mm" $tmpdir/Z_${cslc}.png $tmpdir/Z_${cslc}.png         fi         cnt=$(($cnt+1))         if [ $cnt -eq 1 ]         then             cp $tmpdir/Z_${cslc}.png $tmpdir/Zset.png         else             pngappend $tmpdir/Zset.png + $pxl $tmpdir/Z_${cslc}.png $tmpdir/Zset.png         fi         if [ $do_thick -eq 1 ]         then             cslc=$(($cslc-1))         fi         if [ $SglVXL -eq 0 ]         then             fslmaths $tmpdir/all_slices -roi 0 $Xsz 0 $Ysz $cslc $slcwdth 0 1 $tmpdir/tmp_slcsel             fslmaths $tmpdir/zslcsel -add $tmpdir/tmp_slcsel $tmpdir/zslcsel         fi     done     echo "$zstr"     echo "$zstr" >> $slcfl     if [ $SglVXL -eq 0 ]     then         overlay 0 1 $bg_img $bgint $tmpdir/zslcsel 1 4 $tmpdir/Zslc_vol         slicer $tmpdir/Zslc_vol -s $slcsc $sdlbl -x 0.4 $tmpdir/ZselX.png -y 0.5 $tmpdir/ZselY.png         pngappend $tmpdir/ZselX.png - 0 $tmpdir/ZselY.png $tmpdir/Zsel.png         pngappend $tmpdir/Zsel.png + $pxl $tmpdir/Zset.png $tmpdir/Zset.png     fi     png_str="$png_str $tmpdir/Zset.png"     set_cnt=$(($set_cnt+1)) fi #----------------------------------------------------------------------# if [ $ovly_stat -eq 1 ] then     declare -a zthr=($smint)     text2png "${zthr[0]}" $tmpdir/lowZ.gif 14     text2png "${zthr[1]}" $tmpdir/high.gif 14     if [ $do_neg -eq 1 ]     then         text2png "-${zthr[0]}" $tmpdir/nlowZ.gif 14         text2png "-${zthr[0]}" $tmpdir/nhigh.gif 14         pngappend $tmpdir/nhigh.gif + 5 $FSLDIR/etc/luts/ramp2.gif + 10 $tmpdir/nlowZ.gif + 25 $tmpdir/lowZ.gif + 5 $FSLDIR/etc/luts/ramp.gif + 5 $tmpdir/high.gif $tmpdir/zinfo.gif     else         pngappend $tmpdir/lowZ.gif + 5 $FSLDIR/etc/luts/ramp.gif + 5 $tmpdir/high.gif $tmpdir/zinfo.gif     fi     convert $tmpdir/zinfo.gif $tmpdir/zinfo.png fi #----------------------------------------------------------------------# if [ $set_cnt -gt 1 ] then     if [ $SglVXL -eq 1 ]     then         xstr=`printf "X: %6d [%6.2f mm]" $xslc $mmX`         ystr=`printf "Y: %6d [%6.2f mm]" $yslc $mmY`         zstr=`printf "Z: %6d [%6.2f mm]" $zslc $mmZ`         text2png "$xstr" $tmpdir/Xvxlpos.png 12         text2png "$ystr" $tmpdir/Yvxlpos.png 12         text2png "$zstr" $tmpdir/Zvxlpos.png 12         pngappend $tmpdir/Xvxlpos.png - 5 $tmpdir/Yvxlpos.png - 5 $tmpdir/Zvxlpos.png $tmpdir/slcinfo.png         if [ $ovly_stat -eq 1 ]         then             pngappend $tmpdir/slcinfo.png - 5 $tmpdir/zinfo.png $tmpdir/slcinfo.png         fi         pngappend $tmpdir/selZ.png + 5 $tmpdir/selY.png + 5 $tmpdir/selX.png $tmpdir/SLCsel.png         pngappend $tmpdir/SLCsel.png - 5 $tmpdir/slcinfo.png $tmpdir/SLCsel.png         pngappend $tmpdir/Yset.png - 0 $tmpdir/Zset.png $tmpdir/tmp_out1.png         pngappend $tmpdir/Xset.png - 0 $tmpdir/SLCsel.png $tmpdir/tmp_out2.png         pngappend $tmpdir/tmp_out1.png + 0 $tmpdir/tmp_out2.png $outnm     else         cnt=0         for cstr in $png_str         do             cnt=$(($cnt+1))             if [ $cnt -eq 1 ]             then                 appstr="pngappend $cstr"             else                 appstr="$appstr - $pxl $cstr"             fi         done         appstr="$appstr $outnm"         eval $appstr     fi else     cp $png_str $outnm fi if [ $SglVXL -eq 0 ] then     if [ $ovly_stat -eq 1 ]     then         pngappend $outnm - $tmpdir/zinfo.png $outnm     fi fi #----------------------------------------------------------------------# if [ $do_keep -eq 0 ] then     rm -r $tmpdir fi

Top of Message | Previous Page | Permalink

JiscMail Tools


RSS Feeds and Sharing


Advanced Options


Archives

April 2024
March 2024
February 2024
January 2024
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
2006
2005
2004
2003
2002
2001


JiscMail is a Jisc service.

View our service policies at https://www.jiscmail.ac.uk/policyandsecurity/ and Jisc's privacy policy at https://www.jisc.ac.uk/website/privacy-notice

For help and support help@jisc.ac.uk

Secured by F-Secure Anti-Virus CataList Email List Search Powered by the LISTSERV Email List Manager