<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Dear Amarnath,</div><div>GenerateData exists, see</div><div><a href="http://www.openrtk.org/Doxygen/classrtk_1_1ProjectionsReader-members.html">http://www.openrtk.org/Doxygen/classrtk_1_1ProjectionsReader-members.html</a><br></div>This is ITK's internal machinery. When you call Update, it will call itk::DataObject::Update(). This will call UpdateOutputInformation, PropagateRequestedRegion and UpdateOutputData. The latter will call UpdateOutputData in ImageSource which will eventually call GenerateData. See ITK doc for more info.<br></div><div>Cheers,</div><div>Simon<br></div></div></div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jan 28, 2019 at 12:39 PM Andreas Andersen <<a href="mailto:andreasga22@gmail.com">andreasga22@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto">Yes, as far as I remember:<div dir="auto">Update calls Generate on all filters (a reader is also a filter) in the pipeline.<div dir="auto">UpdateOutputInformation calls GenerateOutputInformation, which might be useful if you need properties of an image without reading the actual data, yet.</div><div dir="auto"><br></div><div dir="auto">Best regards</div><div dir="auto">Andreas</div></div></div><br><div class="gmail_quote"><div dir="ltr">On Mon, 28 Jan 2019, 11:45 Amarnath S <<a href="mailto:amarnaths161@gmail.com" target="_blank">amarnaths161@gmail.com</a> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr">Hi,<div><br></div><div>     I am using a rtk::ProjectionsReader as follows:</div><div><br></div><div><div><font face="monospace, monospace">typedef float OutputPixelType;</font></div><div><font face="monospace, monospace">const unsigned int Dimension = 3;</font></div><div><font face="monospace, monospace">typedef itk::Image< OutputPixelType, Dimension > OutputImageType;</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">rtk::ProjectionsReader<OutputImageType>::Pointer projReader;</font></div><div><font face="monospace, monospace">projReader = rtk::ProjectionsReader<OutputImageType>::New();</font></div><div><font face="monospace, monospace">projReader->SetFileNames(fileNames); // filenames is defined and set earlier</font></div></div><div><br></div><div>Now, according to this page <a href="http://www.openrtk.org/Doxygen/classrtk_1_1ProjectionsReader.html" rel="noreferrer" target="_blank">http://www.openrtk.org/Doxygen/classrtk_1_1ProjectionsReader.html</a>,</div><div>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()?</div><div><br></div><div>Thanks and regards</div><div>- Amarnath</div><div><br></div></div></div></div>
_______________________________________________<br>
Rtk-users mailing list<br>
<a href="mailto:Rtk-users@public.kitware.com" rel="noreferrer" target="_blank">Rtk-users@public.kitware.com</a><br>
<a href="https://public.kitware.com/mailman/listinfo/rtk-users" rel="noreferrer noreferrer" target="_blank">https://public.kitware.com/mailman/listinfo/rtk-users</a><br>
</blockquote></div>
_______________________________________________<br>
Rtk-users mailing list<br>
<a href="mailto:Rtk-users@public.kitware.com" target="_blank">Rtk-users@public.kitware.com</a><br>
<a href="https://public.kitware.com/mailman/listinfo/rtk-users" rel="noreferrer" target="_blank">https://public.kitware.com/mailman/listinfo/rtk-users</a><br>
</blockquote></div>