Xilinx / xfopencv

Other
321 stars 144 forks source link

Unknown cause of " template argument deduction/substitution failed" #70

Closed 3togo closed 4 years ago

3togo commented 4 years ago

Below is the error message. It may be trifle but I have just failed to find out what is cause of this error? It could be pretty stupid mistake. I need help anyway

Compiling ../../../../tb/xf_sgbm_tb.cpp in debug mode Compiling ../../../../src/sf_accel.cpp in debug mode ../../../../src/sf_accel.cpp: In function ‘void xf_dummy_filter(AXI_STREAM&, AXI_STREAM&)’: ../../../../src/sf_accel.cpp:150:115: error: no matching function for call to ‘Sobel(XGRAY_SS_IMAGE&, XGRAY_SS_IMAGE&, XGRAY_SS_IMAGE&)’ xf::Sobel<0, 3, xf::Mat<XF_8UC1, 480, 480, 1>, xf::Mat<XF_8UC1, 480, 480, 1>, 480, 480, 1, false>(ss, ss2, ss3); ^ In file included from ../../../../src/sf_accel.cpp:7:0: /opt/xfopencv/2019.1/include/imgproc/xf_sobel.hpp:1432:6: note: candidate: template<int BORDER_TYPE, int FILTER_TYPE, int SRC_T, int DST_T, int ROWS, int COLS, int NPC, bool USE_URAM> void xf::Sobel(xf::Mat<SRC_T, ROWS, COLS, NPC>&, xf::Mat<DST_T, ROWS, COLS, NPC>&, xf::Mat<DST_T, ROWS, COLS, NPC>&) void Sobel(xf::Mat<SRC_T, ROWS, COLS, NPC> & _src_mat,xf::Mat<DST_T, ROWS, COLS, NPC> & _dst_matx,xf::Mat<DST_T, ROWS, COLS, NPC> & _dst_maty) ^~~~~ /opt/xfopencv/2019.1/include/imgproc/xf_sobel.hpp:1432:6: note: template argument deduction/substitution failed: make: * [csim.mk:82: obj/sf_accel.o] Error 1 ERROR: [SIM 211-100] 'csim_design' failed: compilation error(s). INFO: [SIM 211-3] ***** CSIM finish ***

3togo commented 4 years ago

fixed. just typo