-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Closed
Labels
Milestone
Description
Is your feature request related to a problem? Please describe.
I would have expected that every transform has as input the image and the meta_data dict.
This is not the case for many transforms. They do not update the meta_data.
This leads to inconsistencies and errors since after the transforms the meta_data is no longer valid.
For example:
AddChanneladds a new channel but does not update thedim,spatial_shapeororiginal_channel_diminmeta_data.Spacingreturns the new affine but does not update thedim,pixdim,affineorspatial_shapeinmeta_data.
This is really frustrating. Some transforms are written very well while others are not that great.
Describe the solution you'd like
Please update the meta_data in all transformations. This would also add consistency if every transform expects and returns the meta_data dict.
Constantin-Jehn