Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to replace dft with fftw #18

Open
someonelikeypp opened this issue Aug 6, 2018 · 2 comments
Open

How to replace dft with fftw #18

someonelikeypp opened this issue Aug 6, 2018 · 2 comments

Comments

@someonelikeypp
Copy link

someonelikeypp commented Aug 6, 2018

Had anyone used fftw to replace dft experience?
thanks for help.

@someonelikeypp
Copy link
Author

someonelikeypp commented Aug 6, 2018

I am writing some test code here:
ComplexMat KCF_Tracker::fft2(const cv::Mat &input)
{
...
cv:Mat input_8U;
cv:Mat input_32F;

input.convertTo(input_32F, CV_32F);             //    first

input.convertTo(input_8U, CV_8U);
input_8U.convertTo(input_32F, CV_32F);      //    second

...

}
the first input_32F will equals the input, but the second input_32F won't equals input.

Because I need the correct input convert into CV_8U for my fftw's input, what should I do.

@vojirt

@qq297110281
Copy link

Do you figure out how to do it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants