[ITK-users] Problem with ImageFilterMultipleInputs Wiki Example
David Doria
daviddoria at gmail.com
Thu May 15 17:19:38 EDT 2014
Hi Davis,
Please see my responses inline below:
On Thu, May 15, 2014 at 4:31 PM, DVigneault <davis.vigneault at gmail.com>wrote:
> All--
>
> I ran into some problems while trying to run t his Wiki example
> <http://www.itk.org/Wiki/ITK/Examples/Developer/ImageFilterMultipleInputs >
> , and had to make the following changes in order to get it to run:
>
Thank you for the detailed report!
> 1. The source file name in the CMakeLists.txt file did not match the
> actual
> .cxx file name. Changing the .cxx file from "
> ImageFilterMultipleInput.cxx"
> (extraneous space intentional) to "ImageFilterMultipleInputs.cxx" fixed
> this.
>
Fixed.
> 2. Building the code created a .app file (I'm on Mac) that unexpectedly
> quit upon opening. Changing my CMakeLists.txt file to the one copied below
> fixed this.
>
Hm, this one I couldn't reproduce (I'm on Linux). The only problem I saw
were due to your #3 and #4 below.
> 3. Only one input was set, though two were required. Adding a second
> reader and changing the input calls to SetInputImage and SetInputMask fixed
> this.
>
Fixed.
> 4. Upon wrapping the update calls in try/catch blocks, I got a "use of
> undeclared identifier 'SetNthInput'" error. Adding this-> before the
> SetNthInput calls in the .txx file fixed this.
>
Fixed. (This must have not been required by the compiler(s) we used when
this example was created?)
> With these changes, the example is now running as expected. My questions
> are:
> --Was I doing something wrong that caused me to encounter these problems?
>
Nope (except for perhaps #2 ?). The "Developer/" examples are a little more
relaxed than the non "Developer/" examples because they have a less common
structure. We'll clean them up as you continue to point out problems :)
> --If not, should the Wiki example be updated?
>
I have done so. Note that the wiki is scraped nightly to produce the tar
files, so you might need to wait until tomorrow to verify that the changes
fixed all of the problems. In the future, please don't hesitate to edit the
wiki if you find any more issues like this (or anything else)!
Thanks again for the detailed report - it makes things really easy to fix :)
David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20140515/a570c3dc/attachment.html>
More information about the Insight-users
mailing list