Description
I try to build example same as tutorial and document but i got some problem with argument in xf: :erode, xf::dilate with wrong matching function call.
error log:
/home/fallinlove/SDx_workspace/opencvsample/src/colordetect_accel.cpp:24:2: error: no matching function for call to 'erode'
xf::erode<XF_BORDER_CONSTANT, XF_8UC1, HEIGHT, WIDTH, XF_NPPC1>(_range, _erode);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/fallinlove/SDx_workspace/opencvsample/libs/xfopencv/include/imgproc/xf_erosion.hpp:323:6: note: candidate function template not viable: requires 3 arguments, but 2 were provided
void erode (xf::Mat<TYPE, ROWS, COLS, NPC> & _src, xf::Mat<TYPE, ROWS, COLS, NPC> & _dst,unsigned char _kernel[K_ROWSK_COLS])
^
/home/fallinlove/SDx_workspace/opencvsample/src/colordetect_accel.cpp:25:2: error: no matching function for call to 'dilate'
xf::dilate<XF_BORDER_CONSTANT, XF_8UC1, HEIGHT, WIDTH, XF_NPPC1>(_erode, _dilate1);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/fallinlove/SDx_workspace/opencvsample/libs/xfopencv/include/imgproc/xf_dilation.hpp:318:6: note: candidate function template not viable: requires 3 arguments, but 2 were provided
void dilate (xf::Mat<TYPE, ROWS, COLS, NPC> & _src, xf::Mat<TYPE, ROWS, COLS, NPC> & _dst,unsigned char _kernel[K_ROWSK_COLS])
^
/home/fallinlove/SDx_workspace/opencvsample/src/colordetect_accel.cpp:26:2: error: no matching function for call to 'dilate'
xf::dilate<XF_BORDER_CONSTANT, XF_8UC1, HEIGHT, WIDTH, XF_NPPC1>(_dilate1, _dilate2);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/fallinlove/SDx_workspace/opencvsample/libs/xfopencv/include/imgproc/xf_dilation.hpp:318:6: note: candidate function template not viable: requires 3 arguments, but 2 were provided
void dilate (xf::Mat<TYPE, ROWS, COLS, NPC> & _src, xf::Mat<TYPE, ROWS, COLS, NPC> & _dst,unsigned char _kernel[K_ROWSK_COLS])
^
/home/fallinlove/SDx_workspace/opencvsample/src/colordetect_accel.cpp:27:2: error: no matching function for call to 'erode'
xf::erode<XF_BORDER_CONSTANT, XF_8UC1, HEIGHT, WIDTH, XF_NPPC1>(_dilate2, _dst);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/fallinlove/SDx_workspace/opencvsample/libs/xfopencv/include/imgproc/xf_erosion.hpp:323:6: note: candidate function template not viable: requires 3 arguments, but 2 were provided
void erode (xf::Mat<TYPE, ROWS, COLS, NPC> & _src, xf::Mat<TYPE, ROWS, COLS, NPC> & _dst,unsigned char _kernel[K_ROWSK_COLS])
^
ERROR: [SdsCompiler 83-5005] clang exited with non-zero code processing /home/fallinlove/SDx_workspace/opencvsample/src/colordetect_accel.cpp
sds++ log file saved as /home/fallinlove/SDx_workspace/opencvsample/Release/_sds/reports/sds_colordetect_accel.log
ERROR: [SdsCompiler 83-5004] Build failed
src/subdir.mk:21: recipe for target 'src/colordetect_accel.o' failed
make: *** [src/colordetect_accel.o] Error 1
15:43:25 Build Finished (took 17s.858ms)