<div>Hi,</div>
<div> </div>
<div>ok, I found my mistake, was not doing ->Update(); sorry to have bothered for that.</div>
<div> </div>
<div>Pascale<br><br> </div>
<div><span class="gmail_quote">On 9/24/08, <b class="gmail_sendername">Pascale Beliveau</b> <<a href="mailto:beliveaup@gmail.com">beliveaup@gmail.com</a>> 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> </div>
<div> I have a question concerning FFT transforms. Can it be applied to a 3D image?</div>
<div> </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> </div>
<div>Can anyone help me with this? What else could be a problem with vtkImageFFT?</div>
<div> </div>
<div>Thanks in advance,</div>
<div>Pascale</div>
<div> </div>
<div>PS: here is my code for reference:</div>
<div><br><br>vtkImageFFT * FFT = vtkImageFFT::New();<br>FFT->SetDimensionality(3);<br>FFT->SetInput(VtkImage);</div>
<div> </div>
<div><br>vtkImageButterworthLowPass * LPFilter = vtkImageButterworthLowPass::New();<br>LPFilter->SetInput(FFT->GetOutput());<br>LPFilter->SetOrder(2);<br>LPFilter->SetXCutOff(10000);<br>LPFilter->SetYCutOff(10000);<br>
LPFilter->SetZCutOff(10000);<br>LPFilter->ReleaseDataFlagOff();<br><br>vtkImageData * Result = LPFilter->GetOutput(); </div></blockquote></div><br>