[Insight-users] Bug in the NaryFunctorImageFilter ?

Prename Surname bsd.diverse at gmail.com
Wed Oct 18 18:59:20 EDT 2006


I am using the NaryFunctorImageFilter, but i seem to have encountered a bug
of some sort.
I have run the file itkNaryAddImageFilterTest to check if i maybe had an
error in my code, but apparently the problem is also when i run that code
which is distributed with insight.
The problem occurs when the update function is called. Then a excepetion
occurs and the program crashes.
Maybe someone else has also had experience with this before?
Maybe is there something i dont know.

My code looks like this :

.
.
.
 typedef itk::NaryAddImageFilter<ImageType,ImageType> NaryAddFilterType;
 NaryAddFilterType::Pointer NaryAddFilter=NaryAddFilterType::New();

 NaryAddFilter->SetInput(0,csf_lblFilt->GetOutput());
 NaryAddFilter->SetInput(1,gm_lblFilt->GetOutput());
 NaryAddFilter->SetInput(2,wm_lblFilt->GetOutput());
 NaryAddFilter->Update();  // <------HERE OCCURS BUG

I hope to hear from you soon. Many regards
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/insight-users/attachments/20061019/ab4e6fa1/attachment.htm


More information about the Insight-users mailing list