Skip to content
Discussion options

You must be logged in to vote

Indeed as you've pointed out the transform SpacingD needs some additional meta data beyond just the image array; from the documentation:

This transform assumes the data dictionary has a key for the input data’s metadata and contains affine field. The key is formed by key_{meta_key_postfix}.

Based on this you should have a dictionary item like image_meta_dict in your data which has an affine field... however looking at the code this argument was deprecated since MetaTensor was introduced in MONAI 0.9. (the above documentation blurb needs to be updated-- would be good to open an issue for that)

assuming your monai version is >= 0.9, I think your input should be a MetaTensor rather than a …

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@pauljhin
Comment options

@ebrahimebrahim
Comment options

@pauljhin
Comment options

Answer selected by pauljhin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants