<div>I am using the NaryFunctorImageFilter, but i seem to have encountered a bug of some sort.</div>
<div>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.</div>
<div>The problem occurs when the update function&nbsp;is called. Then a excepetion occurs and the program crashes.</div>
<div>Maybe someone else has also had experience with this before?</div>
<div>Maybe is there something&nbsp;i dont know.</div>
<div>&nbsp;</div>
<div>My code looks like this :</div>
<div>&nbsp;</div>
<div>.</div>
<div>.</div>
<div>.</div>
<div>&nbsp;typedef itk::NaryAddImageFilter&lt;ImageType,ImageType&gt; NaryAddFilterType;<br>&nbsp;NaryAddFilterType::Pointer NaryAddFilter=NaryAddFilterType::New();<br>&nbsp;<br>&nbsp;NaryAddFilter-&gt;SetInput(0,csf_lblFilt-&gt;GetOutput());
<br>&nbsp;NaryAddFilter-&gt;SetInput(1,gm_lblFilt-&gt;GetOutput());<br>&nbsp;NaryAddFilter-&gt;SetInput(2,wm_lblFilt-&gt;GetOutput());<br>&nbsp;NaryAddFilter-&gt;Update();&nbsp; // &lt;------HERE OCCURS BUG</div>
<div>&nbsp;</div>
<div>I hope to hear from you soon. Many regards<font size="1"></font></div>