next up previous
Next: maskcreate - Build a Up: Brain Volume I/O Handling Previous: covar - Compute covariance

flip - Flip and/or permute a volume  

1997 Ulrik Kjems, DSP/IMM, Technical University of Denmark, uk@imm.dtu.dk
Usage: 
  flip [-i level] [-l] [-u] [-t] [-p o1 o2 ... ] inputfile [outputfile]

Flips (mirrors) and/or permutes a volume.
    
    -i level         : Set level of information
    -l               : Flip image left/right (x)
    -u               : Flip image up/down (y)
    -t               : Flip image top/bottom (z)
    -p o1 o2 o3 ...  : Permute the volume according to an 
                       o1..on ordering of indices

If no outputfile is specified, the inputfile will be overwritten.
The permutation is performed *before* the flipping.

Permutation is a reordering of the voxel indices. E.g. a 256x150x120
volume can be turned into a 120x256x150 using -p 2 1 0. 
Note that indices are counted from 0.
flip -h produces above information

Ulrik Kjems
6/3/1998