[ITK] [ITK-dev] imagefilereader

Bill Lorensen bill.lorensen at gmail.com
Tue May 24 12:18:15 EDT 2016


Without looking at the code, are you saying that a customer has to
change their application from:

reader->GenerateOutputInformation();

to

reader->UpdateOutputInformation();

Why?

On Tue, May 24, 2016 at 11:29 AM, Lowekamp, Bradley (NIH/NLM/LHC) [C]
<blowekamp at mail.nih.gov> wrote:
> 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 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
>
> _______________________________________________
> 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
> _______________________________________________
> Community mailing list
> Community at itk.org
> http://public.kitware.com/mailman/listinfo/community
>
>
>
> _______________________________________________
> 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
>



-- 
Unpaid intern in BillsBasement at noware dot com
_______________________________________________
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