Dear Luis,<br>Thanks a lot for your answer. This is the error I get when I try to use the DiscreteGaussianImageFilter with unsigned char pixels:<br><br>d:\itk\source\insighttoolkit-3.4.0\code\basicfilters\itkNeighborhoodOperatorImag<br>
eFilter.txx:96:<br>itk::ERROR: NeighborhoodOperatorImageFilter(017D9CF0): This filter can only crea<br>te images of signed data type.<br><br>Best regards<br>Bert<br><br><br><div class="gmail_quote">On Tue, May 13, 2008 at 12:15 AM, Luis Ibanez &lt;<a href="mailto:luis.ibanez@kitware.com">luis.ibanez@kitware.com</a>&gt; wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
Hi Bert,<br>
<br>
1) Bad news: unfortunately the maximum kernel width is set by a single<br>
 &nbsp; value for all dimensions of the image.<br>
<br>
2) Good news: it may not be too hard to modify this filter in order<br>
 &nbsp; to allow you to use a different kernel size on each dimension.<br>
 &nbsp; When you look at the actual code in GenerateData(), lines 195,<br>
 &nbsp; 215,216,217, the Gaussian operator is actually run on every<br>
 &nbsp; dimension at a time.<br>
<br>
 &nbsp; You could follow the example of what is done with the MaximumError<br>
 &nbsp; variable.<br>
<br>
3) Is your motivation to perform blurring with a different sigma<br>
 &nbsp; along each dimension ?<br>
<br>
4) The pixel type may be indeed an issue. Both the test and example<br>
 &nbsp; that we have in ITK are using float as pixel type...<br>
<br>
 &nbsp; Are you seeing any artifacts in the output when you use an unsigned<br>
 &nbsp; char image as input ?<br>
<br>
<br>
Please let us know,<br>
<br>
<br>
 &nbsp; Thanks<br>
<br>
<br>
<br>
 &nbsp; &nbsp; &nbsp; Luis<br>
<br>
<br>
<br>
---------------<br>
Bert wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div><div></div><div class="Wj3C7c">
Dear all,<br>
<br>
I am trying to use the itkDiscreteGaussianImageFilter and I would like to know if it is possible to set different values for the MaximumKernelWidth depending on the dimension. I has also some problems, because I am using unsigned char pixels and I think this filter only work with signed char, is it right?<br>

<br>
Best regards<br>
Bert<br>
<br>
<br></div></div>
------------------------------------------------------------------------<br>
<br>
_______________________________________________<br>
Insight-users mailing list<br>
<a href="mailto:Insight-users@itk.org" target="_blank">Insight-users@itk.org</a><br>
<a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
</blockquote>
</blockquote></div><br>