[Insight-developers] Adding new class to ITK
Andrei Danilchenko
andrei.v.danilchenko at vanderbilt.edu
Wed Feb 11 16:38:44 EST 2009
Luis,
Thanks for your help. I tried doing like you said before, but on some reason
it didn't work. Now it's working correctly, I can use my new class as part
of ITK library in my applications. After some testing I will probably
contribute it to Insight Journal.
Thanks,
Andrei.
_____
From: Luis Ibanez [mailto:luis.ibanez at kitware.com]
Sent: Wednesday, February 11, 2009 2:41 PM
To: Andrei Danilchenko
Cc: insight-developers at itk.org
Subject: Re: [Insight-developers] Adding new class to ITK
Hi Andrei,
If your class is a template then you don't need to modify any CMakeLists.txt
file.
Simply put your .h and .txx files in the Code/Algorithms directory
(or the Code/Review directory if you have enabled ITK_USE_REVIEW)
Of course, I'm sure you wrote a test for it :-)
In order to have your test run as part of the ITK testing suite,
that .cxx test, you will put it in the directory
Insight/Testing/Code/Common
and you will edit the CMakeLists.txt file in that directory.
We look forward to see your new class contributed to the Insight Journal
:-)
http://www.insight-journal.org/
Regards,
Luis
----------------------------------------------------------------------------
----------------------------------------
On Wed, Feb 11, 2009 at 3:31 PM, Andrei Danilchenko
<andrei.v.danilchenko at vanderbilt.edu> wrote:
Hello guys,
I'm trying to add a new class to my local ITK copy. The class is very
similar to MattesMutualInformationImageToImageMetric (it's actually the same
but with a couple of changes in the way the metric is computed). I cannot
find nowhere how to do it. As I understand, I should modify some
CMakeLists.txt and then configure ITK with CMake, but I'm not sure which one
I should modify. If someone could tell me how to do it or advise where to
read about it, that would help me a lot.
Thanks,
Andrei.
_______________________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.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-developers
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/mailman/private/insight-developers/attachments/20090211/4fe63787/attachment.htm>
More information about the Insight-developers
mailing list