]> rtime.felk.cvut.cz Git - hercules2020/kcf.git/blob - src/fft_opencv.h
README: Describe the main differences from the original implementation
[hercules2020/kcf.git] / src / fft_opencv.h
1
2 #ifndef FFTOPENCV_H
3 #define FFTOPENCV_H
4
5 #include "fft.h"
6
7 class FftOpencv : public Fft
8 {
9 public:
10     void init(unsigned width, unsigned height, unsigned num_of_feats, unsigned num_of_scales);
11     void set_window(const MatDynMem &window);
12     void forward(const MatScales &real_input, ComplexMat &complex_result);
13     void forward_window(MatScaleFeats &patch_feats_in, ComplexMat &complex_result, MatScaleFeats &tmp);
14     void inverse(ComplexMat &complex_input, MatScales &real_result);
15     ~FftOpencv();
16 private:
17     cv::Mat m_window;
18 };
19
20 #endif // FFTOPENCV_H