backback

Figure 11: Flowline Curvature

_thumb.png

This uses the vfrhand-nohip.{nhdr,raw} dataset created by following the directions here. I had been hoping to use this dataset more in the paper, but there wasn't space.

Making transfer functions. The val0N-txf.nrrd are essentially step functions at various values.

echo "0 1" \
 | unu reshape -s 2 \
 | unu resample -s 512 -k tent -o ramp.nrrd

unu imap -r -i ramp.nrrd -m cmap.txt \
 | unu axinfo -a 0 -l "RGB" \
 | unu axinfo -a 1 -l "gage(fc)" -mm 0.05 1.15 -o fc-txf.nrrd

echo "0 0   1045 0   1055 1      4095 1" \
 | unu reshape -s 2 4 | unu imap -r -i ramp.nrrd -m - \
 | unu axinsert -a 0 -l A \
 | unu axinfo -a 1 -l "gage(v)" -mm 0 4095 -o val01-txf.nrrd

echo "0 0   1085 0   1095 1      4095 1" \
 | unu reshape -s 2 4 | unu imap -r -i ramp.nrrd -m - \
 | unu axinsert -a 0 -l A \
 | unu axinfo -a 1 -l "gage(v)" -mm 0 4095 -o val02-txf.nrrd

echo "0 0   1165 0   1175 1      4095 1" \
 | unu reshape -s 2 4 | unu imap -r -i ramp.nrrd -m - \
 | unu axinsert -a 0 -l A \
 | unu axinfo -a 1 -l "gage(v)" -mm 0 4095 -o val03-txf.nrrd

echo "0 0   1245 0   1255 1      4095 1" \
 | unu reshape -s 2 4 | unu imap -r -i ramp.nrrd -m - \
 | unu axinsert -a 0 -l A \
 | unu axinfo -a 1 -l "gage(v)" -mm 0 4095 -o val04-txf.nrrd

echo "0 0   1325 0   1335 1      4095 1" \
 | unu reshape -s 2 4 | unu imap -r -i ramp.nrrd -m - \
 | unu axinsert -a 0 -l A \
 | unu axinfo -a 1 -l "gage(v)" -mm 0 4095 -o val05-txf.nrrd

echo "0 0   1395 0   1405 1      4095 1" \
 | unu reshape -s 2 4 | unu imap -r -i ramp.nrrd -m - \
 | unu axinsert -a 0 -l A \
 | unu axinfo -a 1 -l "gage(v)" -mm 0 4095 -o val06-txf.nrrd

Setting up and running miter:

setenv NT 55
setenv STEP 0.001
setenv BG "0.15 0.15 0.15"

alias MITER miter -i vfrhand-nohip.nhdr \
  -at -0.4 -0.15 -0.1 -up -3.5 0 5 -fr 1 -7 -1  -fr 0.5 -6 0  -rh \
  -dn -1 -di 0 -df 1 -ar \
  -ur -0.12 0.14 -vr -0.52 0.29 \
  -k00 cubic:1,1,0 -k11 cubicd:1,1,0 -k22 cubicdd:1,1,0 -rn \
  -ld -10 -5 -13 -ads 0.35 0.7 0.2 -sp 30 -step $STEP \
  -is 170 530 -nt $NT

foreach VV ( 01 02 03 04 05 06 )
  MITER -txf fc-txf.nrrd val${VV}-txf.nrrd -o val${VV}.nrrd
  overrgb -i val${VV}.nrrd -b $BG -o val${VV}.png
end

rm -f val??-txf.nrrd

Composing the figure:

unu join -i val??.png -a 3 \
 | unu pad -min 0 -1 -1 0 -max M M+1 M+1 M -b pad -v 255 \
 | unu swap -a 2 3 \
 | unu axmerge -a 1 \
 | unu pad -min 0 0 0 -max M M M+60 -o tmp.png
unu axinsert -i fc-txf.nrrd -a 1 \
 | unu pad -min 0 0 0 -max M 46 M \
 | unu swap -a 1 2 \
 | unu resample -s = x1.6 = -k tent \
 | unu quantize -b 8 \
 | unu inset -i tmp.png -s - -min 0 42 538 -o thumb.png
rm -f tmp.png

unu resample -i thumb.png -s = x0.45 x0.45 -o _thumb.png
unu resample -i thumb.png -s = x0.18 x0.18 -o __thumb.png