<div dir="ltr">Are you setting gaussianFilter-&gt;SetStandardDeviations()<br><br>Jothy<br><br><div class="gmail_quote">On Wed, Jul 14, 2010 at 3:37 PM, Liam Kurmos <span dir="ltr">&lt;<a href="mailto:quantum.leaf@googlemail.com">quantum.leaf@googlemail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Thanks, worked great:<br>
<div class="im"><br>
gaussianSmoothFilter-&gt;SetInput(vol);<br>
gaussianSmoothFilter-&gt;Update();<br>
</div>vol=gaussianSmoothFilter-&gt;GetOutput();<br>
<br>
unfortunately it didn&#39;t solve my problem with the contour tree<br>
construction... though i didnt really expect it to.<br>
<font color="#888888"><br>
Liam<br>
</font><div><div></div><div class="h5"><br>
On Wed, Jul 14, 2010 at 3:17 PM, Jothy &lt;<a href="mailto:jothybasu@gmail.com">jothybasu@gmail.com</a>&gt; wrote:<br>
&gt; GaussianFilter-&gt;GetOutput() should return the output in vtkImageData format.<br>
&gt;<br>
&gt; Try and let&#39;s know<br>
&gt;<br>
&gt; Jothy<br>
&gt;<br>
&gt; On Wed, Jul 14, 2010 at 3:13 PM, Liam Kurmos &lt;<a href="mailto:quantum.leaf@googlemail.com">quantum.leaf@googlemail.com</a>&gt;<br>
&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; On Wed, Jul 14, 2010 at 3:04 PM, Jothy &lt;<a href="mailto:jothybasu@gmail.com">jothybasu@gmail.com</a>&gt; wrote:<br>
&gt;&gt; &gt; My problem was different. I was trying to create a graduall fall off<br>
&gt;&gt; &gt; from<br>
&gt;&gt; &gt; the image with a uniform scalar value inside it. Something like a cube<br>
&gt;&gt; &gt; of<br>
&gt;&gt; &gt; uniform values and a graduall fall of scalar value from its edges.<br>
&gt;&gt; &gt;<br>
&gt;&gt;<br>
&gt;&gt; I see. I imagine that is what should happen if you smooth such an<br>
&gt;&gt; image by gaussian convolution.<br>
&gt;&gt;<br>
&gt;&gt; I already have summed gaussian data in my image ( which should be<br>
&gt;&gt; smooth). I&#39;m trying to use a library to produce a Contour Tree from<br>
&gt;&gt; the data but it is producing spurious values, though i am sceptical my<br>
&gt;&gt; supervisor want me to try smoothing the gaussian data and see if that<br>
&gt;&gt; solves the problem.<br>
&gt;&gt;<br>
&gt;&gt; Is there a way i can feed the output of the gaussianSmoothFilter back<br>
&gt;&gt; into the vtkImageData vol, such that it updates it with smoothed<br>
&gt;&gt; values and i can then access these with<br>
&gt;&gt; vol-&gt;GetScalarComponentAsFloat(i, j, k, 0);<br>
&gt;&gt;<br>
&gt;&gt; ?<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; Liam<br>
&gt;<br>
&gt;<br>
</div></div></blockquote></div><br></div>