InsightSoftwareConsortium / ITK

Insight Toolkit (ITK) -- Official Repository. ITK builds on a proven, spatially-oriented architecture for processing, segmentation, and registration of scientific images in two, three, or more dimensions.
https://itk.org
Apache License 2.0
1.37k stars 660 forks source link

BUG: Propogate MetaIOVersion to child objects in scene I/O #4767

Closed aylward closed 1 day ago

aylward commented 2 days ago

The ITK I/O methods for SpatialObjectRead and SpatialObjectWrite have functions for setting the MetaIO version to use when reading/writing files. See the MetaIO commit: https://github.com/Kitware/MetaIO/commit/eb952d5b2dbbccc27a99cc1b4cb27410f5267981

However, in multi-object MetaIO files (i.e., metaScene files) the user specification of the MetaIO version was not propagated to the readers used for the components objects of the file - resulting in warnings and errors.

This update and a corresponding MetaIO update (https://github.com/Kitware/MetaIO/pull/129) address this error.