5 #include <opencv2/opencv.hpp>
10 #include "complexmat.cuh"
12 #include "complexmat.hpp"
16 #define BIG_BATCH_MODE 1
17 #define IF_BIG_BATCH(true, false) true
19 #define BIG_BATCH_MODE 0
20 #define IF_BIG_BATCH(true, false) false
26 virtual void init(unsigned width, unsigned height, unsigned num_of_feats, unsigned num_of_scales);
27 virtual void set_window(const MatDynMem &window);
28 virtual void forward(const MatScales &real_input, ComplexMat &complex_result);
29 virtual void forward_window(MatScaleFeats &patch_feats_in, ComplexMat &complex_result, MatScaleFeats &tmp);
30 virtual void inverse(ComplexMat &complex_input, MatScales &real_result);
33 static cv::Size freq_size(cv::Size space_size)
35 cv::Size ret(space_size);
36 #if defined(CUFFT) || defined(FFTW)
37 ret.width = space_size.width / 2 + 1;
43 unsigned m_width, m_height, m_num_of_feats;
45 unsigned m_num_of_scales;