i have the following question:
i have an MRI dataset and would like to compute the other two orthogonal projections of that dataset. If i understand correctly, ResampleImageFilter should do what i need. But i have a problem with parameter settings.
For instance, my dataset was taken in a sagittal view and its parameters are:
origin: (35.82217025756836, -281.53106689453125, -45.62310028076172)
size: (448, 448, 15)
spacing: (1.1160714626312, 1.1160714626312, 4.4000020027160645)
direction: (4.5691251730000336e-05, -0.0034908494453999993, -0.9999939059226608, 0.9999999989561548, 1.5929806359999996e-07, 4.569097404107829e-05, -2.0321856580351833e-10, -0.9999939069664997, 0.0034908494490346205)
pixel type: 16-bit unsigned integer
number of pixel components: 1
Now i want to get the coronal and axial views for this dataset to process them separately.
It is clear how to define the new size and new spacing for coronal and axial views, but i
do not understand how to get the correct origin and direction vectors. If i copy them from the original image (which is wrong, of course), the result is wrong as expected. But how to compute them?