Description
@seanm noted in #3242
Lossless would indeed be better. Searching the codebase, I see things like itk::EncapsulateMetaData(metaDict, "TestDouble", metaDataDouble); elsewhere... I was mostly copying nearby code, I wonder why itkNiftiImageIO is only using strings...?
Expected coding style
Avoid binary to string lossy behavior when using the meta data dictionary.
Actual coding style
Some places convert without using NumberToString{}(value).
Versions
It appears to be present from the origin of ITK.
Description
@seanm noted in #3242
Lossless would indeed be better. Searching the codebase, I see things like itk::EncapsulateMetaData(metaDict, "TestDouble", metaDataDouble); elsewhere... I was mostly copying nearby code, I wonder why itkNiftiImageIO is only using strings...?
Expected coding style
Avoid binary to string lossy behavior when using the meta data dictionary.
Actual coding style
Some places convert without using NumberToString{}(value).
Versions
It appears to be present from the origin of ITK.