[ITK] How to check the functions in the ITK documentation

Michka Popoff michkapopoff at gmail.com
Sat May 10 06:15:46 EDT 2014


Hi

I merged your two questions in one topic, so I can answer the two at once.

In the class ImageFileReader, there is no SetFileName method. But the documentation states:
This source object is a general filter to read data from a variety of file formats. It works with a ImageIOBase subclass to actually do the reading of the data.

So if you go the ImageIOBase [1] class definition, you will find the SetFileName method. This can be confusing at the beginning, but when you don’t find a method somewhere (and this is often the case for most of projects you’ll find around, not only ITK), think to look at the parent class and the child/subclass. Often the methods are defined somewhere else.


For the Update() call, this is related to the ITK pipeline. Some detailed description can be found here [2]. There is also one article here [3] that is more readable, or there is a section (13.3) in the ITK software guide here [4].

Finally, we have a nice set of examples here [5] which show you how to use the ITK pipeline. This should help you getting started.


[1] http://www.itk.org/Insight/Doxygen/html/classitk_1_1ImageIOBase.html
[2] http://www.itk.org/Doxygen/html/classitk_1_1DataObject.html
[3] http://www.kitware.com/media/html/IOStreamingInITK.html
[4] http://www.itk.org/ItkSoftwareGuide.pdf
[5] http://itk.org/ITKExamples/


On 9 mai 2014, at 22:45, Simplicity Peace <simplicitypeacescm at gmail.com> wrote:

> Hello,
> 
> For instance, I tried to look for the functions of the class "ImageFileReader". In the ITK software guide, a function called "SetFileName" was used. I thought of looking for the functions that come under that class here, but couldn't find that "SetFileName" function. Am I searching in the wrong place?
> 
> Thanks.
> _______________________________________________
> Community mailing list
> Community at itk.org
> http://public.kitware.com/cgi-bin/mailman/listinfo/community

>> Hello,
>> 
>> I'm new to `ITK`. I just want to ask, what does `Update()` mean? For example, I found that I had to use it with an `ImageFileReader`. Why is that?
>> 
>> Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/community/attachments/20140510/7ff5241a/attachment-0002.html>


More information about the Community mailing list