setenv PATH ../bin/${HOSTTYPE}:$PATH
setenv LD_LIBRARY_PATH .:../bin/${HOSTTYPE}

./smooth-vol -ik  test2.vf foo1.vf
./smooth-vol -ijk  foo1.vf foo2.vf
./smooth-vol -ijk  foo2.vf foo3.vf

pose-gun | ./dual-tp-display test2.vf foo1.vf 1
pose-gun | ./dual-tp-display test2.vf foo2.vf 1
pose-gun | ./dual-tp-display test2.vf foo3.vf 1

pose-gun | ./dual-tp-display /tmp/spgr.vf /tmp/mrt.vf 1 > junk-pose

./mrml-to-vf ../mrml/reg-mit.t 2 /tmp/spgr.vf
./mrml-to-vf ../mrml/reg-mit.t 1 /tmp/mrt.vf
./volume-disp-test test.vf
./tp-display /tmp/spgr.vf .5

volume-test


setenv XAPPLRESDIR `pwd`/resources/
setenv XUSERFILESEARCHPATH `pwd`/resources/

xrdb -merge resources/Browse-image
xrdb -merge resources/Dual-tp-display
xrdb -merge resources/Mother
xrdb -merge resources/Mother-widget-test
xrdb -merge resources/Tp-display



APPLICATION HACKS:



cruise-volume
	make 16/8
	

tp-display-mm
dual-tp-display-mm
	make 16/8
	widgitify


leave alone:

im-disp
pn-list-test
pn-list-test
volume-disp-test



retire:

dual-tp-display	
tp-display


---------------------------------------------------------------------------
mkdir /bigdaily/sw

ge-to-vf ~/pics/medical/ms/I 75 76 .9 .9 3.0 /bigdaily/sw/ms.vf /bigdaily/sw/ms.geh

ge-to-vf /ms2/images/idb/BRIGHAM/GENESIS/BWS/0000005/02420/005/I 1 124 .9 .9 3.0 /bigdaily/sw/spgr.vf /bigdaily/sw/spgr.geh


../display/tp-display vf /bigdaily/sw/spgr.vf
../display/cruise-volume vf /bigdaily/sw/spgr.vf

vf-to-ge /bigdaily/sw/ms.vf /bigdaily/sw/ms.geh /bigdaily/sw/M
vf-to-ge /bigdaily/sw/spgr.vf /bigdaily/sw/spgr.geh /bigdaily/sw/S

ge-to-vf /bigdaily/sw/M 1 2 9 9 9 /bigdaily/sw/ms2.vf
ge-to-vf /bigdaily/sw/S 1 124 9 9 9 /bigdaily/sw/spgr2.vf

../display/cruise-volume vf /bigdaily/sw/ms2.vf
../display/cruise-volume vf /bigdaily/sw/spgr2.vf

----

vax-to-vf /bigweekly/sw/crawford/SIEMENS/SIE/00000001/00001/001/reduce 1 61 3 3 3 /bigdaily/sw/craw-ct.vf
../display/cruise-volume vf /bigdaily/sw/craw-ct.vf

vax-to-vf /bigweekly/sw/crawford/SIEMENS/SIE/00000001/00001/001/reduce 30 31 3 3 3 /bigdaily/sw/craw-ct.vf
../display/cruise-volume vf /bigdaily/sw/craw-ct.vf



# cp /bigdaily/h/filter.* ~/pics/vax

vax-to-vf ~/pics/vax/filter 1 39 3 3 3 /bigdaily/sw/fil.vf
vax-to-vf ~/pics/vax/filter 20 21 3 3 3 /bigdaily/sw/fil.vf
../display/cruise-volume vf /bigdaily/sw/fil.vf
../display/tp-display vf /bigdaily/sw/fil.vf



ge-to-vf-16 /d/bigweekly/karcsi/10925337/01996/004/I 1 52 1 1 1 1 /d/bigdaily/sw/16.vf
ge-to-vf /d/bigweekly/karcsi/10925337/01996/004/I 1 52 1 1 1 1 /d/bigdaily/sw/8.vf
congruent-volume /d/bigdaily/sw/8.vf /d/bigdaily/sw/8.vf null-pose /d/bigdaily/sw/ref-8.vf
congruent-volume /d/bigdaily/sw/16.vf /d/bigdaily/sw/8.vf null-pose /d/bigdaily/sw/ref-16.vf

subtract-volumes /d/bigdaily/sw/16.vf /d/bigdaily/sw/16.vf /d/bigdaily/sw/sub.vf

tp-display-mm /d/bigdaily/sw/sub.vf .5
cruise-volume vf /d/bigdaily/sw/sub.vf

for round ron:
<pose <m3x1 	0 0 600 > <Q 0.707733 0.593858 0.245984 -0.293153>>


#---------------------------------------------------------------------------

setenv TMP  /export/suede/sw/tmp

setenv MVIS /export/suede/sw/mvis-2.6

setenv PATH ${MVIS}/bin/${HOSTTYPE}:$PATH
setenv LD_LIBRARY_PATH .:${MVIS}/bin/${HOSTTYPE}:${PATH}:/usr/openwin/lib:/opt/SUNWits/Graphics-sw/xil/lib

cd $TMP

# mrml-to-vf /mrml/mrt-mit.mrml mrt.vf
mrml-to-vf $MVIS/mrml/mrt.mrml mrt.vf
tp-display mrt.vf 1

mrml-to-vf $MVIS/mrml/spgr.mrml spgr.vf
tp-display spgr.vf 1

ln -s spgr.vf fixed.1 
ln -s mrt.vf moving.1 

smooth-vol -yz fixed.1 fixed.2
smooth-vol -xyz fixed.2 fixed.3
smooth-vol -xyz fixed.3 fixed.4

smooth-vol -yz moving.1 moving.2
smooth-vol -yz moving.2 moving.3
smooth-vol -xyz moving.3 moving.4

pose-gun | dual-tp-display spgr.vf mrt.vf 1

# echo "<pose <m3x1 	0 -80.2606 -28.1908 > <Q 0.981061 -0.172987 -0.0151344 -0.0858317>>" > start-pose

echo "<pose <m3x1 	0 60 60 > <Q 0.984808 -0.173648 0 0>>" > start-pose

reg-3d-i $MVIS/reg/experiments/params/ctmr-reg-params.4 < start-pose > pose.4
reg-3d-i $MVIS/reg/experiments/params/ctmr-reg-params.3 < pose.4 > pose.3
reg-3d-i $MVIS/reg/experiments/params/ctmr-reg-params.2 < pose.3 > pose.2
reg-3d-i $MVIS/reg/experiments/params/ctmr-reg-params.1 < pose.2 > pose.1

pose-to-trans < pose.1 > trans.1

invert-pose < pose.1 | pose-to-trans > trans.2

cat trans.1

rm mrt.* spgr.* fixed.* moving.*
