[Insight-users] Possible bug in DiscreteGaussianImageFilter

Parag Chandra pchandra@radonc.unc.edu
Wed, 23 Apr 2003 14:47:08 -0400


This is a multi-part message in MIME format.

------=_NextPart_000_000B_01C309A7.373A1E50
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Hi,

=20

I've been using this filter for a while and was always getting warnings
about "Kernel size has exceeded the specified maximum width of." errors,
which occur on line 54 of itkGaussianOperator.txx. So today I finally =
got
around to fixing them by using
DiscreteGaussianImageFilter::SetMaximumKernelWidth(), and now most of =
the
warnings have disappeared. However, I still get that warning twice, and =
it
seems like there is a problem with
DiscreteGaussianImageFilter::GenerateData(). If I compare that method =
with
::GenerateInputRequestedRegion() right above it, I notice that when the
GaussianOperators are instantiated, GenerateInputRequestedRegion()
immediately calls SetMaximumKernelWidth() on them while GenerateData =
does
not. Since both methods also call GaussianOperator::SetDirection(),
::SetMaximumError(), and ::SetVariance(), it seems like maybe this is a =
bug.
Maybe this has already been fixed in CVS, but I'm still using 1.2.

=20

-Parag Chandra


------=_NextPart_000_000B_01C309A7.373A1E50
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html>

<head>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">


<meta name=3DGenerator content=3D"Microsoft Word 10 (filtered)">

<style>
<!--
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman";}
a:link, span.MsoHyperlink
	{color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{color:purple;
	text-decoration:underline;}
span.EmailStyle17
	{font-family:Arial;
	color:windowtext;}
@page Section1
	{size:8.5in 11.0in;
	margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
	{page:Section1;}
-->
</style>

</head>

<body lang=3DEN-US link=3Dblue vlink=3Dpurple>

<div class=3DSection1>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Hi,</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>&nbsp;</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>I&#8217;ve been using this filter for a while and was =
always
getting warnings about &#8220;Kernel size has exceeded the specified =
maximum
width of&#8230;&#8221; errors, which occur on line 54 of
itkGaussianOperator.txx. So today I finally got around to fixing them by =
using
DiscreteGaussianImageFilter::SetMaximumKernelWidth(), and now most of =
the
warnings have disappeared. However, I still get that warning twice, and =
it
seems like there is a problem with =
DiscreteGaussianImageFilter::GenerateData().
If I compare that method with ::GenerateInputRequestedRegion() right =
above it,
I notice that when the GaussianOperators are instantiated,
GenerateInputRequestedRegion() immediately calls SetMaximumKernelWidth() =
on
them while GenerateData does not. Since both methods also call =
GaussianOperator::SetDirection(),
::SetMaximumError(), and ::SetVariance(), it seems like maybe this is a =
bug.
Maybe this has already been fixed in CVS, but I&#8217;m still using =
1.2.</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>&nbsp;</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>-</span></font><font size=3D2 face=3DArial><span
 style=3D'font-size:10.0pt;font-family:Arial'>Parag =
Chandra</span></font></p>

</div>

</body>

</html>

------=_NextPart_000_000B_01C309A7.373A1E50--