converting in only 'x' or 'y' directions?
- Dominant language
- Python
- Stars
- 205
- Forks
- 57
- PR merge metrics
- No merged PRs in 30d
Description
Short question: is it possible to choose in which direction to convert apart from z or all?
Long Q w problem:
I have 3D .nii files and I have coordinates (c1,c2,c3) of a centroid of an ROI.
I have sliced these files using med2image --reslice on each coord and then deleting files so I end up with only slice c1 in direction x, c2 in direction y and c3 in direction z. (Bit tedious but saving slices directly with itk does not work properly)
Sometimes a coordinate is bigger than the size of my .nii file in one of the dimensions med2image tries to slice in. Say coords of centroid = (80, 120 ,80) and .nii image size is (90, 140, 120). I want slice 80 in x, slice 120 in y and slice 80 in z. I get an error when --reslice on 120 because med2image also tries in direction x, which is out of bounds and then the slice will not be converted in other directions.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.