[Insight-users] About ITK User Coding Styles

Sah Rayman sahrayman at yahoo.com
Fri, 20 Feb 2004 01:14:09 -0800 (PST)


Lius,

Thanks for the quick reply. It does give me some
ideas.

--- Luis Ibanez <luis.ibanez at kitware.com> wrote:
> 
> Hi Sah,
> 
> The code in Insight/Examples is intended to
> illustrate
> the simplest use of ITK filters.
> 
> If you want to see more realistic examples of how
> to use ITK in applications, you should look at
> 
>               InsightApplications
> 
> You can get it throug CVS or by downloading the
> .zip and/or .tar.gz files from the ITK download
> page
> 
> 
>     http://www.itk.org/HTML/Download.php
> 
> 
> 
> Regards,
> 
> 
> 
>     Luis
> 
> 
> -------------------
> 
> Sah Rayman wrote:
> 
> > Hi there,
> > 
> > ITK itself is very object oriented, well organized
> > code. But I just had some difficulty writing C++
> style
> > code using ITK.
> > 
> > e.g., nearly all code examples has only one
> function,
> > main(); typedef some filters; link them together
> by
> > define input/output; and then update(). 
> > 
> > When the project gets larger, say, I need to use
> 20
> > filters (some of them are used more than once,
> like
> > BinaryThreshold), and need some operation in
> between
> > which can only be done by iterator, how can I
> write
> > it? 
> > 
> > Put everything in main() would make it really
> ugly.
> > One thing I can imagine is like the follows. But
> even
> > that is not very easy to do.
> > 
> > main() {
> >   Part1();
> >   Part2();
> >   //...
> > }
> > 
> > PartN() {
> >   //some filters goes here
> >   //... 
> > }
> > 
> > Just wonder how other people are doing. Any
> comments
> > or ideas are welcome.
> > 
> > 
> > __________________________________
> > Do you Yahoo!?
> > Yahoo! Mail SpamGuard - Read only the mail you
> want.
> > http://antispam.yahoo.com/tools
> > _______________________________________________
> > Insight-users mailing list
> > Insight-users at itk.org
> > http://www.itk.org/mailman/listinfo/insight-users
> > 
> 
> 
> 


__________________________________
Do you Yahoo!?
Yahoo! Mail SpamGuard - Read only the mail you want.
http://antispam.yahoo.com/tools