I was wondering if on 3D Slicer it was possible to import a registration matrix that I obtained with Matlab (using an optical flow algorithm), so to apply it to a segment.
In my case I have three 512x512x306 matrices (pixel * pixel * number of slices), each one containing the displacements of each pixel respectively in x, y, z direction.
Error in PROVAnrrd (line 45) nrrdwrite(‘testOutput_x.nrrd’, img);
So I divided the 4D displacement matrix into three 3D displacement matrices (512x512x205), each one containing x or y or z displacements. In this case nrrdwrite works.
However when I import one of these three matrices into 3D slicer I get this: