[Insight-users] MaskImageFilter wiki example

Chr. Rossmanith cr at neuro.ma.uni-heidelberg.de
Wed Feb 15 09:19:03 EST 2012


Only ITK_VERSION_MAJOR is needed to evaluate #if() and it is defined in 
itkConfigure.h - and an additional argument from the practical point of 
view: it works...

Christina

Am 15.02.2012 14:55, schrieb David Doria:
> On Wed, Feb 15, 2012 at 8:49 AM, Chr. Rossmanith 
> <cr at neuro.ma.uni-heidelberg.de <mailto:cr at neuro.ma.uni-heidelberg.de>> 
> wrote:
>
>     I've added
>
>     #include "itkConfigure.h"
>
>     to the example.
>
>     Christina
>
>
> I'm not sure this is the way to go. Perhaps:
>
> #include "itkImage.h"
> #if ( ITK_VERSION_MAJOR < 4  ) //These are all defaults in ITKv4
> //  Not supported in ITKv3.
> int main(int argc, char *argv[])
> {
>   return 0;
> }
> #else
> ...
>
> ?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20120215/7822a829/attachment.htm>


More information about the Insight-users mailing list