Question about wrapper_matlab in bgslibrary?

1 view (last 30 days)
hello guys
I want to work on MATLAB in order to use bgslibrary in my research.
I followed the steps mentioned in the README but I got an error when I run the compile.m.
Noted that I have installed the Microsoft Visual Studio 2015.
the command window on matlab was:
-------------------------------------------------------------------
Building with 'Microsoft Visual C++ 2015'.
cl /c /Zp8 /GR /W3 /EHs /nologo /MD /O2 /Oy- /DNDEBUG /DMEX_COMPILE_FLAG /DMATLAB_DEFAULT_RELEASE=R2017b /DUSE_MEX_CMD /D_CRT_SECURE_NO_DEPRECATE /D_SCL_SECURE_NO_DEPRECATE /D_SECURE_SCL=0 /DMATLAB_MEX_FILE -I"C:\Program Files\MATLAB\R2018a\toolbox\vision\builtins\src\ocvcg\opencv\include" -I"C:\Program Files\MATLAB\R2018a\extern\include" -I"C:\Program Files\MATLAB\R2018a\toolbox\distcomp\gpu\extern\include" -I"..\package_bgs" -I"C:\Program Files\MATLAB\R2018a\extern\include" -I"C:\Program Files\MATLAB\R2018a\simulink\include" "E:\BAW\9raya ya rabbak\doctoral\bgslibrary-master\wrapper_matlab\backgroundSubtractor_wrapper.cpp" /FoC:\Users\ihssane\AppData\Local\Temp\mex_208498863070114_10064\backgroundSubtractor_wrapper.obj
Error using mexOpenCV (line 136)
backgroundSubtractor_wrapper.cpp
e:\baw\9raya ya rabbak\doctoral\bgslibrary-master\wrapper_matlab\mxarray.h(591): warning C4267: 'argument': conversion from
'size_t' to 'int', possible loss of data
..\package_bgs\IBGS.h(23): fatal error C1083: Cannot open include file: 'cv.h': No such file or directory
Error in compile (line 3)
mexOpenCV -v -DMEX_COMPILE_FLAG -I"../package_bgs" backgroundSubtractor_wrapper.cpp ...

Answers (0)

Categories

Find more on Introduction to Installation and Licensing in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!