<div>Hi,</div>
<div>&nbsp;</div>
<div>ok, I found my mistake, was not doing -&gt;Update(); sorry to have bothered for that.</div>
<div>&nbsp;</div>
<div>Pascale<br><br>&nbsp;</div>
<div><span class="gmail_quote">On 9/24/08, <b class="gmail_sendername">Pascale Beliveau</b> &lt;<a href="mailto:beliveaup@gmail.com">beliveaup@gmail.com</a>&gt; wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div>Hi,</div>
<div>&nbsp;</div>
<div>&nbsp;&nbsp; I have a question concerning FFT transforms. Can it be applied to a 3D image?</div>
<div>&nbsp;</div>
<div>I am trying to use the butterworth filter of vtk. The volume is fed to vtkImageFFT and then I want to apply the butterworth filter. The problem is the image is empty right after I feed it to vtkImageFFT (size=0, extent=[0,-1,0,-1,0,-1]). I converted my intensity values to float since I read that FFT cannot support other types than float or double.</div>

<div>&nbsp;</div>
<div>Can anyone help me&nbsp;with this? What else could be a problem with vtkImageFFT?</div>
<div>&nbsp;</div>
<div>Thanks in advance,</div>
<div>Pascale</div>
<div>&nbsp;</div>
<div>PS: here is my code for reference:</div>
<div><br><br>vtkImageFFT * FFT = vtkImageFFT::New();<br>FFT-&gt;SetDimensionality(3);<br>FFT-&gt;SetInput(VtkImage);</div>
<div>&nbsp;</div>
<div><br>vtkImageButterworthLowPass * LPFilter = vtkImageButterworthLowPass::New();<br>LPFilter-&gt;SetInput(FFT-&gt;GetOutput());<br>LPFilter-&gt;SetOrder(2);<br>LPFilter-&gt;SetXCutOff(10000);<br>LPFilter-&gt;SetYCutOff(10000);<br>
LPFilter-&gt;SetZCutOff(10000);<br>LPFilter-&gt;ReleaseDataFlagOff();<br><br>vtkImageData * Result = LPFilter-&gt;GetOutput(); </div></blockquote></div><br>