]> rtime.felk.cvut.cz Git - hercules2020/kcf.git/blob - src/fft_opencv.h
Introduce new Mat types and use them in the code
[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) override;
11     void set_window(const MatDynMem &window) override;
12     void forward(const MatScales &real_input, ComplexMat &complex_result) override;
13     void forward_window(MatScaleFeats &patch_feats_in, ComplexMat &complex_result, MatScaleFeats &tmp) override;
14     void inverse(ComplexMat &complex_input, MatDynMem &real_result) override;
15     ~FftOpencv() override;
16 private:
17     cv::Mat m_window;
18 };
19
20 #endif // FFTOPENCV_H