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:
AddChannel adds a new channel but does not update the dim, spatial_shape or original_channel_dim in meta_data.
Spacing returns the new affine but does not update the dim, pixdim, affine or spatial_shape in meta_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.
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_datadict.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_datais 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_datain all transformations. This would also add consistency if every transform expects and returns themeta_datadict.