<div dir="ltr">Are you setting gaussianFilter->SetStandardDeviations()<br><br>Jothy<br><br><div class="gmail_quote">On Wed, Jul 14, 2010 at 3:37 PM, Liam Kurmos <span dir="ltr"><<a href="mailto:quantum.leaf@googlemail.com">quantum.leaf@googlemail.com</a>></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->SetInput(vol);<br>
gaussianSmoothFilter->Update();<br>
</div>vol=gaussianSmoothFilter->GetOutput();<br>
<br>
unfortunately it didn'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 <<a href="mailto:jothybasu@gmail.com">jothybasu@gmail.com</a>> wrote:<br>
> GaussianFilter->GetOutput() should return the output in vtkImageData format.<br>
><br>
> Try and let's know<br>
><br>
> Jothy<br>
><br>
> On Wed, Jul 14, 2010 at 3:13 PM, Liam Kurmos <<a href="mailto:quantum.leaf@googlemail.com">quantum.leaf@googlemail.com</a>><br>
> wrote:<br>
>><br>
>> On Wed, Jul 14, 2010 at 3:04 PM, Jothy <<a href="mailto:jothybasu@gmail.com">jothybasu@gmail.com</a>> wrote:<br>
>> > My problem was different. I was trying to create a graduall fall off<br>
>> > from<br>
>> > the image with a uniform scalar value inside it. Something like a cube<br>
>> > of<br>
>> > uniform values and a graduall fall of scalar value from its edges.<br>
>> ><br>
>><br>
>> I see. I imagine that is what should happen if you smooth such an<br>
>> image by gaussian convolution.<br>
>><br>
>> I already have summed gaussian data in my image ( which should be<br>
>> smooth). I'm trying to use a library to produce a Contour Tree from<br>
>> the data but it is producing spurious values, though i am sceptical my<br>
>> supervisor want me to try smoothing the gaussian data and see if that<br>
>> solves the problem.<br>
>><br>
>> Is there a way i can feed the output of the gaussianSmoothFilter back<br>
>> into the vtkImageData vol, such that it updates it with smoothed<br>
>> values and i can then access these with<br>
>> vol->GetScalarComponentAsFloat(i, j, k, 0);<br>
>><br>
>> ?<br>
>><br>
>><br>
>> Liam<br>
><br>
><br>
</div></div></blockquote></div><br></div>