Replies: 1 comment
-
thanks for the question, instead of assigning affine[1,3], you can consider making a proper shifting matrix and then do MONAI/monai/transforms/utility/array.py Lines 387 to 390 in c2a9a31 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I was trying to patch or crop some larger volumes into slices of 100 voxels, at the moment I have achieved to do so, but I have noticed that some of the outputs are I can load and observe in a Slicer Docker Image, and MITK as well. But some I cannot, it throw's an orthogonal information missing error. Example, if I have 15 slices of a volume, the first 8-9 slices will load easily into Slicer, but the last 5-6 won't.
In the code, I change the affine at [1,3] so I can set my own affine for each crop with a slightly different reference location for each crop. I was looking for a method to automate the assigning of affine to the crops, but couldn't find anything. If I don't set an affine, all the crops have the same affine as the original image and they just overlap on top of each other.
As I mentioned, the issue here is, I can load and observe some of the crops, but some don't load. What could the reason be? Suggestions are welcomed as well to a better approach.
Beta Was this translation helpful? Give feedback.
All reactions