crop ct scan deep from the top #1929
oscarramirezs
started this conversation in
General
Replies: 3 comments 11 replies
-
I think |
Beta Was this translation helpful? Give feedback.
6 replies
-
As the discussion above, we could achieve it with |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hi, suggested PR here. If you wanted to leave the last 100 in the z-direction and not touch anything else, this would be done with: SpatialCrop(roi_slices=[slice(None), slice(None), slice(-100, None)]) |
Beta Was this translation helpful? Give feedback.
5 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.
-
HELLO,
I have a question, can someone help me? sorry it may be a silly question
I have some Keen CT scan, each image is 512x512 and deep changes from one CT scan to another (ex; sometime 120 images to 900 images), sometimes the CT start from the ankle and some time from near the knee,
so when I use crop = SpatialCropd(keys=["image", "label"], roi_start=[0, 0, 0], roi_end=[512, 512, 256]), the scanner is cut from the bottom to the top, but I want to start cropping from the top to the Botton because always the keen is in the top.
How can I cut the images starting always from the last one, ? ( the last one change for each ct)
thank you for your help
Oscar
Beta Was this translation helpful? Give feedback.
All reactions