Your company here — click to reach over 10,000 unique daily visitors

unu-shuffle - Man Page

permute slices along one axis


unu shuffle [@file ...] -p,--permute <slc0 slc1 ...> [-inv,--inverse] -a,--axis <axis> [-i,--input <nin>] [-o,--output <nout>]


Permute slices along one axis. Slices along one axis are re-arranged as units according to the given permutation (or its inverse). The permutation tells which old slice to put at each new position. For example, the shuffle 0->1, 1->2, 2->0 would be “2 0 1”. Obviously, if you have to rearrange the many slices of a large dataset, you should probably store the permutation in a plain text file and use it as a “response filerq).


@file ...

response file(s) containing command-line arguments

-p <slc0 slc1 ...> , --permute <slc0 slc1 ...>

new slice ordering (1 or more unsigned ints)

-inv , --inverse

use inverse of given permutation

-a <axis> , --axis <axis>

axis to shuffle along (unsigned int)

-i <nin> , --input <nin>

input nrrd

-o <nout> , --output <nout>

output nrrd (string); default: “-

See Also

unu(1), unu-flip(1)

Referenced By

unu(1), unu-flip(1).

August 2021