[Insight-users] Questions about ITK4
Gelas, Arnaud Joel Florent
Arnaud_Gelas at hms.harvard.edu
Thu Sep 29 12:54:41 EDT 2011
Hi Hui Rang,
I am really happy to see you are interested and are testing the new level set infrastructure!
If you get this error, I can only assume that you are now using the git master version of ITK, this file has been remove recently from the repository...
I would strongly recommend to stick to ITK tags, since API keeps on changing all around the place in the toolkit.
Here is how you'd get the last tagged version:
$ git fetch --all
$ git checkout -t origin/v4.0b1
With this version, you should be able to find itkBinaryImageToWhitakerSparseLevelSetAdaptor.h
If you are more adventurous, and want to be part of the development, you can use master, but expect API / files / class name to change.
You can also create a gerrit account to review patches (instructions are on the wiki). Note that all contributions / inputs on this effort are welcome!!
Now regarding your question, this is really easy to make it happened in the v4 infrastructure. You have two possibilities:
1- grab the code from iternal or external term (depending on your case); copy the code; you modify and remove the part in which the mean gets updated.
and you add itkSetMacro to set the mean at the beginning.
2- you inherit, might need to change some method to virtual (if needed, let me know that'd be easy to fix).
If you need more details on how to proceed for 1 or 2, just let me know, we can definitively give you some more details on how to proceed.
Thanks,
Best,
Arnaud
________________________________________
From: Hui Tang [tanghui.seu at gmail.com]
Sent: Thursday, September 29, 2011 12:20 PM
To: Gelas, Arnaud Joel Florent
Subject: Questions about ITK4
Dear Arnaud,
How are you?
I am using ITK4, but this headfile "itkBinaryImageToWhitakerSparseLevelSetAdaptor.h" can not be found in ITK4. Did I do anything wrong?
And maybe you could help me with another question:) in chanvase model, if my I would like to have a fixed average intensity ("c1") for the foreground how can I implement that using ITK4?
Thanks so much.
Looking forward to your reply.
Best,
Hui Tang
More information about the Insight-users
mailing list