[ITK-dev] help itk::GDCMImageIO / itk::ExposeMetaData

Arnaud Gelas arnaudgelas at gmail.com
Mon Sep 15 06:05:02 EDT 2014


Hi guys,

I have been looking at GDCMImageIO this morning and I thought it would be great if it was possible to iterate directly on the Dictionary and do not use ExposeMetaData cause internally there are 2 finds (HasKeys and [] ) per iterator (in which we already know both keys and values).

https://github.com/Kitware/ITK/blob/master/Modules/IO/GDCM/src/itkGDCMImageIO.cxx#L700
https://github.com/Kitware/ITK/blob/master/Modules/Core/Common/include/itkMetaDataObject.h#L171-L189

I have tried to create a new function which would take an iterator as parameter, I have compilation error or a failing dynamic_cast… I guess I am missing something obvious…

I have been testing something like that:

http://review.source.kitware.com/#/c/17026/

Any idea on how to fix the code ( both compilation & dynamic_cast ), please?

Thanks,
Arnaud
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/insight-developers/attachments/20140915/a8328b3b/attachment.html>


More information about the Insight-developers mailing list