5 #include <opencv2/opencv.hpp>
8 #include "complexmat.hpp"
11 #define BIG_BATCH_MODE 1
12 #define IF_BIG_BATCH(true, false) true
14 #define BIG_BATCH_MODE 0
15 #define IF_BIG_BATCH(true, false) false
21 void init(unsigned width, unsigned height, unsigned num_of_feats, unsigned num_of_scales);
22 void set_window(const MatDynMem &window);
23 void forward(const MatScales &real_input, ComplexMat &complex_result);
24 void forward_window(MatScaleFeats &patch_feats_in, ComplexMat &complex_result, MatScaleFeats &tmp);
25 void inverse(ComplexMat &complex_input, MatScales &real_result);
27 static cv::Size freq_size(cv::Size space_size)
29 cv::Size ret(space_size);
30 #if defined(CUFFT) || defined(FFTW)
31 ret.width = space_size.width / 2 + 1;
37 unsigned m_width, m_height, m_num_of_feats;
39 unsigned m_num_of_scales;