[ITK-dev] [ITK] imagefilereader

Lowekamp, Bradley (NIH/NLM/LHC) [C] blowekamp at mail.nih.gov
Tue May 24 11:29:27 EDT 2016


Hello Marius,

The commit you linked to has the simple change needed:

-  reader->GenerateOutputInformation();
+  reader->UpdateOutputInformation();


HTH,
Brad

On May 24, 2016, at 10:55 AM, M.Staring at lumc.nl<mailto:M.Staring at lumc.nl> wrote:

Hi Matt,

This change:
https://itk.org/gitweb?p=ITK.git;a=commitdiff;h=3e1d822985b9eb3548e4fb9891f6773452467a81
is breaking our code where we rely on the availability of the GenerateOutputInformation() function to read image info while avoiding to read the actual data. We use that information to select the correct reader from a list of instantiated readers.

I had a look, and indeed in the base class (ProcessObject) this function is protected, so I guess it qualifies as a bug that GenerateOutputInformation() was public previously. This change does break backward compatibility however.

Do you have a suggestion on how to fix this? I really would like to have functionality in the image readers that read the meta data only, and not the data itself.

Thanks for your advice,
Marius

Marius Staring, PhD
Division of Image Processing (LKEB)
Department of Radiology
Leiden University Medical Center
PO Box 9600, 2300 RC Leiden, The Netherlands
phone: +31 (0)71 52 62137, fax: +31 (0)71 524 8256 m.staring at lumc.nl<mailto:m.staring at lumc.nl>

_______________________________________________
Powered by www.kitware.com<http://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
_______________________________________________
Community mailing list
Community at itk.org<mailto:Community at itk.org>
http://public.kitware.com/mailman/listinfo/community

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/insight-developers/attachments/20160524/7d466a07/attachment.html>


More information about the Insight-developers mailing list