[Insight-users] problem with threaded generate.

Dženan Zukić dzenanz at gmail.com
Mon Sep 12 07:05:14 EDT 2011


"The signature of ThreadedGenerateData() has been changed in ITK v4 to use
the new ThreadIdType." This says it all. Did you even read the error
message?

Anyway, threadId should be declared not as int but as ThreadIdType, like
this:

/** Does the real work. */
virtual void ThreadedGenerateData(const typename
Superclass::OutputImageRegionType& outputRegionForThread,
  ThreadIdType threadId);

On Sun, Sep 11, 2011 at 09:26, iamrndm b <arindam.osu.cse at gmail.com> wrote:

> hi all ,
> i am trying to develop a multithreaded filter and keep getting the
> following error
> UpdateCTestConfiguration  from
> :/Users/arindambhattacharya/Research/code/git_itk/itk_bin/Modules/Nonunit/Review/test/DartConfiguration.tcl
> UpdateCTestConfiguration  from
> :/Users/arindambhattacharya/Research/code/git_itk/itk_bin/Modules/Nonunit/Review/test/DartConfiguration.tcl
> Test project
> /Users/arindambhattacharya/Research/code/git_itk/itk_bin/Modules/Nonunit/Review/test
> Constructing a list of tests
> Done constructing a list of tests
> Checking test dependency graph...
> test 18
>     Start 18: itkDiceImageFilterTest01
>
> 18: Test command: Research/code/git_itk/itk_bin/bin/ITKReviewTestDriver
> itkDiceImageFilterTest
> Research/code/git_itk/ITK/Testing/Data/Input/itkDiceImageFilterInputA.jpg
> Research/code/git_itk/ITK/Testing/Data/Input/itkDiceImageFilterInputB.jpg
> 18: Test timeout computed to be: 9.99988e+06
> 18: ITK test driver caught an ITK exception:
> 18:
> 18: itk::ExceptionObject (0x101ef4fd0)
> 18: Location: "void itk::MultiThreader::SingleMethodExecute()"
> 18: File:
> Research/code/git_itk/ITK/Modules/Core/Common/src/itkMultiThreader.cxx
> 18: Line: 319
> 18: Description: itk::ERROR: MultiThreader(0x102039000): Exception occurred
> during SingleMethodExecute
> 18:
> Research/code/git_itk/ITK/Modules/Core/Common/include/itkImageSource.hxx:294:
> 18: itk::ERROR: itkDiceImageFilter(0x101ef48a0): Subclass should override
> this method!!!
> 18: The signature of ThreadedGenerateData() has been changed in ITK v4 to
> use the new ThreadIdType.
> 18: itkDiceImageFilter::ThreadedGenerateData() might need to be updated to
> used it.
> 18:
> 1/1 Test #18: itkDiceImageFilterTest01 .........***Failed    0.08 sec
>
> 0% tests passed, 1 tests failed out of 1
>
> Label Time Summary:
> ITKReview    =   0.08 sec
>
> Total Test time (real) =   0.16 sec
>
> The following tests FAILED:
>  18 - itkDiceImageFilterTest01 (Failed)
> Errors while running CTest
>
> I am not quite sure what i am doing wrong , i have added the .h and .hxx
> files .
> any ideas/help will be appreciated
>
>
> thanks
> Andy
>
> _____________________________________
> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20110912/89d9285f/attachment.htm>


More information about the Insight-users mailing list