<DIV>Hi,</DIV>
<DIV> </DIV>
<DIV>I'm triing to use itkDiscreteGaussianImageFilter to smooth each 2D slice of my 3D image. </DIV>
<DIV> </DIV>
<DIV>But I'm still having this exception no matter the maximum width of kernel I set: </DIV>
<DIV> </DIV>
<DIV><STRONG>"Kernel size has exceeded the specified maximum width of <EM>MaximumKernelWidth</EM> and has been truncated to <EM>MaximumKernelWidth+1</EM> elements. You can raise the maximum width using the SetMaximumKernelWidth method."</STRONG></DIV>
<P>Could someone tell me why? Here is what I did:</P>
<P><STRONG>typedef itk::DiscreteGaussianImageFilter<WorkImageType,WorkImageType>GaussianFilterType;<BR>GaussianFilterType::Pointer gaussFilter = GaussianFilterType::New();</STRONG></P>
<P><STRONG> GaussianFilterType::ArrayType v;<BR> v[0]=3.0;<BR> v[1]=3.0;<BR> v[2]=3.0;<BR> gaussFilter->SetVariance(v);</STRONG></P>
<P><STRONG>gaussFilter->SetMaximumKernelWidth(5);//I ried with default value=32, 5, 20, nothing works</STRONG></P>
<P><STRONG> gaussFilter->SetFilterDimensionality(2);//smooth only each slice but not in time</STRONG></P>
<P><STRONG> gaussFilter->SetInput(reader->GetOutput());</STRONG></P>
<P><STRONG>gaussFilter->Update();</STRONG></P>
<P><STRONG>rescaleFilter->SetInput(gaussFilter->GetOutput());</STRONG></P>
<P><STRONG>rescaleFilter->Update();</STRONG></P>
<P>Isabelle</P>
<P><BR> </P>
<P> </P>
<P><STRONG> </P>
<DIV><BR></DIV></STRONG><p>
                <hr size=1>
<b><font color=#FF0000>Appel audio GRATUIT</font> partout dans le monde</b> avec le nouveau Yahoo! Messenger<br>
<a href="http://us.rd.yahoo.com/messenger/mail_taglines/default/*http://fr.messenger.yahoo.com">Téléchargez le ici !</a>