M
Marie
Hi,
I´m trying to perform Fourier Transforms on contiuously incoming
images from a camera.
I have sofar been using the Basic Interface for planning and execution
for every image. Later I have tried to only perform the basic planning
once and then using the Guru Interface for execution continuously for
each incoming image.
This results in debug errors for the execution of the c2r part.
Do I have to redo the planning for each image?
The code looks something like this:
//FFTW
if (fftw_plan_flag == false)
{
p_roi = fftw_plan_dft_r2c_2d(padSizeWidth, padSizeHeight,
real_input, complex_output,
FFTW_ESTIMATE);
fftw_plan_flag = true;
}
//Guru Interface, executing a basic plan
fftw_execute_dft_r2c(p_roi, iphinputroiPad, complex_output);
//IFFTW
if ( fftw_plan_flag == false )
{
p_ifft = fftw_plan_dft_c2r_2d(padSizeWidth, padSizeHeight,
complex_input, real_output,
FFTW_ESTIMATE);
fftw_plan_flag = true;
}
//Guru Interface, executing a basic plan
fftw_execute_dft_c2r(p_ifft, complex_input, real_output);
Thanks for any advice on how to perform this task correctly!
Marie
I´m trying to perform Fourier Transforms on contiuously incoming
images from a camera.
I have sofar been using the Basic Interface for planning and execution
for every image. Later I have tried to only perform the basic planning
once and then using the Guru Interface for execution continuously for
each incoming image.
This results in debug errors for the execution of the c2r part.
Do I have to redo the planning for each image?
The code looks something like this:
//FFTW
if (fftw_plan_flag == false)
{
p_roi = fftw_plan_dft_r2c_2d(padSizeWidth, padSizeHeight,
real_input, complex_output,
FFTW_ESTIMATE);
fftw_plan_flag = true;
}
//Guru Interface, executing a basic plan
fftw_execute_dft_r2c(p_roi, iphinputroiPad, complex_output);
//IFFTW
if ( fftw_plan_flag == false )
{
p_ifft = fftw_plan_dft_c2r_2d(padSizeWidth, padSizeHeight,
complex_input, real_output,
FFTW_ESTIMATE);
fftw_plan_flag = true;
}
//Guru Interface, executing a basic plan
fftw_execute_dft_c2r(p_ifft, complex_input, real_output);
Thanks for any advice on how to perform this task correctly!
Marie