[Insight-users] how to compile and build a new filter?

Luis Ibanez luis.ibanez at kitware.com
Fri Dec 11 10:54:17 EST 2009


Hi Ming,

The simplest way to do it, is to put these two files:

              newFilter.h
              newFilter.txx

inside your project, and to add to your CMakeList.txt
file the following line:

    INCLUDE_DIRECTORIES(  ${PROJECT_SOURCE_DIR})

and finally, just include the newFilter.h header in the .cxx
files of your project where you need to instantiate the filter.

You may find useful to look at the Tutorial:
http://www.na-mic.org/Wiki/images/b/bc/Insight-Writing-a-New-Filter.ppt



Also, you SHOULD write a UNIT TEST for this new filter,
before you attempt to use it in your project. It will save you
a lot of unnecessary suffering.


     Regards,


          Luis


-----------------------------------------------------
On Thu, Dec 10, 2009 at 11:10 AM, Ming Chao <mingchao2005 at gmail.com> wrote:
> Hi,
> Can anyone give a hint on what is the easiest way to compile and build a
> newFilter.h and newFilter.txx? They are not included in the ITK package but
> I want to use them in my calculation. Thanks,
> Ming
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.html
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-users
>
>


More information about the Insight-users mailing list