[ITK] [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/community/attachments/20140915/a8328b3b/attachment-0002.html>
-------------- next part --------------
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Kitware offers ITK Training Courses, for more information visit:
http://kitware.com/products/protraining.php

Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/insight-developers


More information about the Community mailing list