[Rtk-users] Regarding rtk::ProjectionsReader

Andreas Andersen andreasga22 at gmail.com
Mon Jan 28 12:39:23 CET 2019


Yes, as far as I remember:
Update calls Generate on all filters (a reader is also a filter) in the
pipeline.
UpdateOutputInformation calls GenerateOutputInformation, which might be
useful if you need properties of an image without reading the actual data,
yet.

Best regards
Andreas

On Mon, 28 Jan 2019, 11:45 Amarnath S <amarnaths161 at gmail.com wrote:

> Hi,
>
>      I am using a rtk::ProjectionsReader as follows:
>
> typedef float OutputPixelType;
> const unsigned int Dimension = 3;
> typedef itk::Image< OutputPixelType, Dimension > OutputImageType;
>
> rtk::ProjectionsReader<OutputImageType>::Pointer projReader;
> projReader = rtk::ProjectionsReader<OutputImageType>::New();
> projReader->SetFileNames(fileNames); // filenames is defined and set
> earlier
>
> Now, according to this page
> http://www.openrtk.org/Doxygen/classrtk_1_1ProjectionsReader.html,
> this class has a GenerateData() method, which does the real work. In the
> GitHub rtk-master downloaded last week, this method does not seem to be
> present. There is only one method name beginning with Generate..., and it
> is GenerateOutputInformation(). What is the new method name for
> GenerateData(). If it cannot be called directly, how else is it to be
> invoked? Will calling of Update() internally call GenerateData()?
>
> Thanks and regards
> - Amarnath
>
> _______________________________________________
> Rtk-users mailing list
> Rtk-users at public.kitware.com
> https://public.kitware.com/mailman/listinfo/rtk-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.creatis.insa-lyon.fr/pipermail/rtk-users/attachments/20190128/0e7f4b86/attachment.htm>


More information about the Rtk-users mailing list