Skip to content

String conversions to EncapsulateMetaData should attempt to be lossless. #3249

@hjmjohnson

Description

@hjmjohnson

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.

Metadata

Metadata

Assignees

Labels

type:StyleStyle changes: no logic impact (indentation, comments, naming)

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions