Open jerry1618 opened 4 years ago
Hi, I clone your code and compile it in ubuntu 16.04 and g++ (Ubuntu 5.4.0-6ubuntu1~16.04.11) 5.4.0 20160609, but there are some errors as follow. Why?
Handheld-Multi-Frame-Super-Resolution-master/src/main.cpp:1:0: Handheld-Multi-Frame-Super-Resolution-master/src/kernels.h: In function ‘cv::Mat getKernelWeights(int, int, T, T, T, T)’: Handheld-Multi-Frame-Super-Resolution-master/src/kernels.h:19:25: error: expected primary-expression before ‘>’ token kernel.ptr(i)[j] = std::exp(-0.5 (axx + (b + c)xy + d yy)); ^ Handheld-Multi-Frame-Super-Resolution-master/src/kernels.h:19:31: error: invalid types ‘int[int]’ for array subscript kernel.ptr(i)[j] = std::exp(-0.5 (axx + (b + c)xy + d yy)); ^ make[2]: [CMakeFiles/HMF.dir/main.cpp.o] Error 1 make[1]: [CMakeFiles/HMF.dir/all] Error 2 make: *** [all] Error 2
Did you resolve the issue?
not yet.
Hi, I clone your code and compile it in ubuntu 16.04 and g++ (Ubuntu 5.4.0-6ubuntu1~16.04.11) 5.4.0 20160609, but there are some errors as follow. Why?
Handheld-Multi-Frame-Super-Resolution-master/src/main.cpp:1:0: Handheld-Multi-Frame-Super-Resolution-master/src/kernels.h: In function ‘cv::Mat getKernelWeights(int, int, T, T, T, T)’: Handheld-Multi-Frame-Super-Resolution-master/src/kernels.h:19:25: error: expected primary-expression before ‘>’ token kernel.ptr(i)[j] = std::exp(-0.5 (axx + (b + c)xy + d yy));
^
Handheld-Multi-Frame-Super-Resolution-master/src/kernels.h:19:31: error: invalid types ‘int[int]’ for array subscript
kernel.ptr(i)[j] = std::exp(-0.5 (axx + (b + c)xy + d yy));
^
make[2]: [CMakeFiles/HMF.dir/main.cpp.o] Error 1
make[1]: [CMakeFiles/HMF.dir/all] Error 2
make: *** [all] Error 2