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:
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?