int permute_vol(header *hdr, void** data, int *order)
Returns ERROR if the order vector contains invalid entries (i.e. < 0 or >= n.o. dimensions)
This program swaps x and y indices of a volume.
int order[3]={1,0,2};
header *hdr;
void *mydata;
.
.
hdr = new_header();
read_volume("myvol", hdr, &mydata);
permute(hdr, &mydata, order);
1.0 4/4-98 Ulrik Kjems