Last modified 5 years ago Last modified on 2012-04-27 01:28:17

Create cases

Useful unu commands

Create timestampEmpty:

unu resample -t double -i segment_identifiers.nrrd -s = = = | unu 2op x - 0 -o timeStampsEmpty.nrrd

Convert short file and set voxel size

unu quantize -b 8 -i segment_identifiers.nrrd | unu data - | unu make -i - -s 137 232 243 -sp 0.0003 0.0003 0.0003 -t uchar -o out.nrrd

From a segment identifiers file, generate smoothed individual models for each segment

unu 2op eq 1 segment_identifiers.nrrd | unu 2op x 255 - | unu resample -k gauss:2,1 -s x1.0 x1.0 x1.0 | unu crop -min 1 1 1 -max M-1 M-1 M-1 | unu pad -min -1 -1 -1 -max M+1 M+1 M+1 -b pad -v 0 -o bonegauss.nrrd
unu 2op eq 2 segment_identifiers.nrrd | unu 2op x 255 - | unu resample -k gauss:2,1 -s x1.0 x1.0 x1.0 | unu crop -min 1 1 1 -max M-1 M-1 M-1 | unu pad -min -1 -1 -1 -max M+1 M+1 M+1 -b pad -v 0 -o teethgauss.nrrd

Create the timeStamp and timeStampsEmpty files. From data/ folder:

unu resample -s = = = -t double -i ../volumes/bonegauss.nrrd | unu 2op x 0 - -o timeStampsEmpty.nrrd
cp timeStampsEmpty.nrrd timeStamps.nrrd