hello guys I want to work on MATLAB in order to use bgslibrary in my research, using the wrapper_matlab files, which found in the bgslibrary folders on github. 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 and I am working with matlab 2018a. Hope I can find someone could help me in this and thanx in advance.
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\study\doctoral\bgslibrary-master\wrapper_matlab\backgroundSubtractor_wrapper.cpp" /FoC:\Users\ihssane\AppData\Local\Temp\mex_62234284571999_12516\backgroundSubtractor_wrapper.obj
Error using mexOpenCV (line 136)
backgroundSubtractor_wrapper.cpp
e:\baw\study\doctoral\bgslibrary-master\wrapper_matlab\mxarray.h(591): warning C4267: 'argument': conversion from 'size_t' to
'int', possible loss of data
E:/BAW/study/doctoral/bgslibrary-master/package_bgs/opencv-3.4.4/build/install/include/opencv2/imgproc/types_c.h(58): error
C2011: 'CvConnectedComp': 'struct' type redefinition
C:\Program Files\MATLAB\R2018a\toolbox\vision\builtins\src\ocvcg\opencv\include\opencv2/imgproc/types_c.h(58): note: see
declaration of 'CvConnectedComp'
E:/BAW/study/doctoral/bgslibrary-master/package_bgs/opencv-3.4.4/build/install/include/opencv2/imgproc/types_c.h(69): error
C2011: 'SmoothMethod_c': 'enum' type redefinition
C:\Program Files\MATLAB\R2018a\toolbox\vision\builtins\src\ocvcg\opencv\include\opencv2/imgproc/types_c.h(69): note: see
declaration of 'SmoothMethod_c'
E:/BAW/study/doctoral/bgslibrary-master/package_bgs/opencv-3.4.4/build/install/include/opencv2/imgproc/types_c.h(91): error
C2365: 'CV_GAUSSIAN_5x5': redefinition; previous definition was 'enumerator'
C:\Program Files\MATLAB\R2018a\toolbox\vision\builtins\src\ocvcg\opencv\include\opencv2/imgproc/types_c.h(91): note: see
declaration of 'CV_GAUSSIAN_5x5'
E:/BAW/study/doctoral/bgslibrary-master/package_bgs/opencv-3.4.4/build/install/include/opencv2/imgproc/types_c.h(96): error
C2365: 'CV_SCHARR': redefinition; previous definition was 'enumerator'
C:\Program Files\MATLAB\R2018a\toolbox\vision\builtins\src\ocvcg\opencv\include\opencv2/imgproc/types_c.h(96): note: see
declaration of 'CV_SCHARR'
E:/BAW/study/doctoral/bgslibrary-master/package_bgs/opencv-3.4.4/build/install/include/opencv2/imgproc/types_c.h(98): error
C2365: 'CV_MAX_SOBEL_KSIZE': redefinition; previous definition was 'enumerator'
C:\Program Files\MATLAB\R2018a\toolbox\vision\builtins\src\ocvcg\opencv\include\opencv2/imgproc/types_c.h(98): note: see
declaration of 'CV_MAX_SOBEL_KSIZE'
E:/BAW/study/doctoral/bgslibrary-master/package_bgs/opencv-3.4.4/build/install/include/opencv2/imgproc/types_c.h(103): error
C2365: 'CV_BGR2BGRA': redefinition; previous definition was 'enumerator'
C:\Program Files\MATLAB\R2018a\toolbox\vision\builtins\src\ocvcg\opencv\include\opencv2/imgproc/types_c.h(103): note: see
declaration of 'CV_BGR2BGRA'
E:/BAW/study/doctoral/bgslibrary-master/package_bgs/opencv-3.4.4/build/install/include/opencv2/imgproc/types_c.h(104): error
C2365: 'CV_RGB2RGBA': redefinition; previous definition was 'enumerator'
C:\Program Files\MATLAB\R2018a\toolbox\vision\builtins\src\ocvcg\opencv\include\opencv2/imgproc/types_c.h(104): note: see
declaration of 'CV_RGB2RGBA'
E:/BAW/study/doctoral/bgslibrary-master/package_bgs/opencv-3.4.4/build/install/include/opencv2/imgproc/types_c.h(106): error
C2365: 'CV_BGRA2BGR': redefinition; previous definition was 'enumerator'
C:\Program Files\MATLAB\R2018a\toolbox\vision\builtins\src\ocvcg\opencv\include\opencv2/imgproc/types_c.h(106): note: see
declaration of 'CV_BGRA2BGR'
E:/BAW/study/doctoral/bgslibrary-master/package_bgs/opencv-3.4.4/build/install/include/opencv2/imgproc/types_c.h(107): error
C2365: 'CV_RGBA2RGB': redefinition; previous definition was 'enumerator'
C:\Program Files\MATLAB\R2018a\toolbox\vision\builtins\src\ocvcg\opencv\include\opencv2/imgproc/types_c.h(107): note: see
declaration of 'CV_RGBA2RGB'
E:/BAW/study/doctoral/bgslibrary-master/package_bgs/opencv-3.4.4/build/install/include/opencv2/imgproc/types_c.h(109): error
C2365: 'CV_BGR2RGBA': redefinition; previous definition was 'enumerator'
C:\Program Files\MATLAB\R2018a\toolbox\vision\builtins\src\ocvcg\opencv\include\opencv2/imgproc/types_c.h(109): note: see
declaration of 'CV_BGR2RGBA'
E:/BAW/study/doctoral/bgslibrary-master/package_bgs/opencv-3.4.4/build/install/include/opencv2/imgproc/types_c.h(110): error
C2365: 'CV_RGB2BGRA': redefinition; previous definition was 'enumerator'
C:\Program Files\MATLAB\R2018a\toolbox\vision\builtins\src\ocvcg\opencv\include\opencv2/imgproc/types_c.h(110): note: see
declaration of 'CV_RGB2BGRA'
E:/BAW/study/doctoral/bgslibrary-master/package_bgs/opencv-3.4.4/build/install/include/opencv2/imgproc/types_c.h(112): error
C2365: 'CV_RGBA2BGR': redefinition; previous definition was 'enumerator'
C:\Program Files\MATLAB\R2018a\toolbox\vision\builtins\src\ocvcg\opencv\include\opencv2/imgproc/types_c.h(112): note: see
declaration of 'CV_RGBA2BGR'
E:/BAW/study/doctoral/bgslibrary-master/package_bgs/opencv-3.4.4/build/install/include/opencv2/imgproc/types_c.h(113): error
C2365: 'CV_BGRA2RGB': redefinition; previous definition was 'enumerator'
C:\Program Files\MATLAB\R2018a\toolbox\vision\builtins\src\ocvcg\opencv\include\opencv2/imgproc/types_c.h(113): note: see
declaration of 'CV_BGRA2RGB'
E:/BAW/study/doctoral/bgslibrary-master/package_bgs/opencv-3.4.4/build/install/include/opencv2/imgproc/types_c.h(115): error
C2365: 'CV_BGR2RGB': redefinition; previous definition was 'enumerator'
C:\Program Files\MATLAB\R2018a\toolbox\vision\builtins\src\ocvcg\opencv\include\opencv2/imgproc/types_c.h(115): note: see
declaration of 'CV_BGR2RGB'
E:/BAW/study/doctoral/bgslibrary-master/package_bgs/opencv-3.4.4/build/install/include/opencv2/imgproc/types_c.h(116): error
C2365: 'CV_RGB2BGR': redefinition; previous definition was 'enumerator'
C:\Program Files\MATLAB\R2018a\toolbox\vision\builtins\src\ocvcg\opencv\include\opencv2/imgproc/types_c.h(116): note: see
declaration of 'CV_RGB2BGR'
E:/BAW/study/doctoral/bgslibrary-master/package_bgs/opencv-3.4.4/build/install/include/opencv2/imgproc/types_c.h(118): error
C2365: 'CV_BGRA2RGBA': redefinition; previous definition was 'enumerator'
C:\Program Files\MATLAB\R2018a\toolbox\vision\builtins\src\ocvcg\opencv\include\opencv2/imgproc/types_c.h(118): note: see
declaration of 'CV_BGRA2RGBA'
E:/BAW/study/doctoral/bgslibrary-master/package_bgs/opencv-3.4.4/build/install/include/opencv2/imgproc/types_c.h(119): error
C2365: 'CV_RGBA2BGRA': redefinition; previous definition was 'enumerator'
C:\Program Files\MATLAB\R2018a\toolbox\vision\builtins\src\ocvcg\opencv\include\opencv2/imgproc/types_c.h(119): note: see
declaration of 'CV_RGBA2BGRA'
E:/BAW/study/doctoral/bgslibrary-master/package_bgs/opencv-3.4.4/build/install/include/opencv2/imgproc/types_c.h(121): error
C2365: 'CV_BGR2GRAY': redefinition; previous definition was 'enumerator'
C:\Program Files\MATLAB\R2018a\toolbox\vision\builtins\src\ocvcg\opencv\include\opencv2/imgproc/types_c.h(121): note: see
declaration of 'CV_BGR2GRAY'
E:/BAW/study/doctoral/bgslibrary-master/package_bgs/opencv-3.4.4/build/install/include/opencv2/imgproc/types_c.h(122): error
C2365: 'CV_RGB2GRAY': redefinition; previous definition was 'enumerator'
C:\Program Files\MATLAB\R2018a\toolbox\vision\builtins\src\ocvcg\opencv\include\opencv2/imgproc/types_c.h(122): note: see
declaration of 'CV_RGB2GRAY'
E:/BAW/study/doctoral/bgslibrary-master/package_bgs/opencv-3.4.4/build/install/include/opencv2/imgproc/types_c.h(123): error
C2365: 'CV_GRAY2BGR': redefinition; previous definition was 'enumerator'
C:\Program Files\MATLAB\R2018a\toolbox\vision\builtins\src\ocvcg\opencv\include\opencv2/imgproc/types_c.h(123): note: see
declaration of 'CV_GRAY2BGR'
E:/BAW/study/doctoral/bgslibrary-master/package_bgs/opencv-3.4.4/build/install/include/opencv2/imgproc/types_c.h(124): error
C2365: 'CV_GRAY2RGB': redefinition; previous definition was 'enumerator'
C:\Program Files\MATLAB\R2018a\toolbox\vision\builtins\src\ocvcg\opencv\include\opencv2/imgproc/types_c.h(124): note: see
declaration of 'CV_GRAY2RGB'
E:/BAW/study/doctoral/bgslibrary-master/package_bgs/opencv-3.4.4/build/install/include/opencv2/imgproc/types_c.h(125): error
C2365: 'CV_GRAY2BGRA': redefinition; previous definition was 'enumerator'
C:\Program Files\MATLAB\R2018a\toolbox\vision\builtins\src\ocvcg\opencv\include\opencv2/imgproc/types_c.h(125): note: see
declaration of 'CV_GRAY2BGRA'
E:/BAW/study/doctoral/bgslibrary-master/package_bgs/opencv-3.4.4/build/install/include/opencv2/imgproc/types_c.h(126): error
C2365: 'CV_GRAY2RGBA': redefinition; previous definition was 'enumerator'
C:\Program Files\MATLAB\R2018a\toolbox\vision\builtins\src\ocvcg\opencv\include\opencv2/imgproc/types_c.h(126): note: see
declaration of 'CV_GRAY2RGBA'
E:/BAW/study/doctoral/bgslibrary-master/package_bgs/opencv-3.4.4/build/install/include/opencv2/imgproc/types_c.h(127): error
C2365: 'CV_BGRA2GRAY': redefinition; previous definition was 'enumerator'
C:\Program Files\MATLAB\R2018a\toolbox\vision\builtins\src\ocvcg\opencv\include\opencv2/imgproc/types_c.h(127): note: see
declaration of 'CV_BGRA2GRAY'
E:/BAW/study/doctoral/bgslibrary-master/package_bgs/opencv-3.4.4/build/install/include/opencv2/imgproc/types_c.h(128): error
C2365: 'CV_RGBA2GRAY': redefinition; previous definition was 'enumerator'
C:\Program Files\MATLAB\R2018a\toolbox\vision\builtins\src\ocvcg\opencv\include\opencv2/imgproc/types_c.h(128): note: see
declaration of 'CV_RGBA2GRAY'
E:/BAW/study/doctoral/bgslibrary-master/package_bgs/opencv-3.4.4/build/install/include/opencv2/imgproc/types_c.h(130): error
C2365: 'CV_BGR2BGR565': redefinition; previous definition was 'enumerator'
C:\Program Files\MATLAB\R2018a\toolbox\vision\builtins\src\ocvcg\opencv\include\opencv2/imgproc/types_c.h(130): note: see
declaration of 'CV_BGR2BGR565'
E:/BAW/study/doctoral/bgslibrary-master/package_bgs/opencv-3.4.4/build/install/include/opencv2/imgproc/types_c.h(131): error
C2365: 'CV_RGB2BGR565': redefinition; previous definition was 'enumerator'
C:\Program Files\MATLAB\R2018a\toolbox\vision\builtins\src\ocvcg\opencv\include\opencv2/imgproc/types_c.h(131): note: see
declaration of 'CV_RGB2BGR565'
E:/BAW/study/doctoral/bgslibrary-master/package_bgs/opencv-3.4.4/build/install/include/opencv2/imgproc/types_c.h(132): error
C2365: 'CV_BGR5652BGR': redefinition; previous definition was 'enumerator'
C:\Program Files\MATLAB\R2018a\toolbox\vision\builtins\src\ocvcg\opencv\include\opencv2/imgproc/types_c.h(132): note: see
declaration of 'CV_BGR5652BGR'
E:/BAW/study/doctoral/bgslibrary-master/package_bgs/opencv-3.4.4/build/install/include/opencv2/imgproc/types_c.h(133): error
C2365: 'CV_BGR5652RGB': redefinition; previous definition was 'enumerator'
C:\Program Files\MATLAB\R2018a\toolbox\vision\builtins\src\ocvcg\opencv\include\opencv2/imgproc/types_c.h(133): note: see
declaration of 'CV_BGR5652RGB'
E:/BAW/study/doctoral/bgslibrary-master/package_bgs/opencv-3.4.4/build/install/include/opencv2/imgproc/types_c.h(134): error
C2365: 'CV_BGRA2BGR565': redefinition; previous definition was 'enumerator'
C:\Program Files\MATLAB\R2018a\toolbox\vision\builtins\src\ocvcg\opencv\include\opencv2/imgproc/types_c.h(134): note: see
declaration of 'CV_BGRA2BGR565'
E:/BAW/study/doctoral/bgslibrary-master/package_bgs/opencv-3.4.4/build/install/include/opencv2/imgproc/types_c.h(135): error
C2365: 'CV_RGBA2BGR565': redefinition; previous definition was 'enumerator'
C:\Program Files\MATLAB\R2018a\toolbox\vision\builtins\src\ocvcg\opencv\include\opencv2/imgproc/types_c.h(135): note: see
declaration of 'CV_RGBA2BGR565'
E:/BAW/study/doctoral/bgslibrary-master/package_bgs/opencv-3.4.4/build/install/include/opencv2/imgproc/types_c.h(136): error
C2365: 'CV_BGR5652BGRA': redefinition; previous definition was 'enumerator'
C:\Program Files\MATLAB\R2018a\toolbox\vision\builtins\src\ocvcg\opencv\include\opencv2/imgproc/types_c.h(136): note: see
declaration of 'CV_BGR5652BGRA'
E:/BAW/study/doctoral/bgslibrary-master/package_bgs/opencv-3.4.4/build/install/include/opencv2/imgproc/types_c.h(137): error
C2365: 'CV_BGR5652RGBA': redefinition; previous definition was 'enumerator'
C:\Program Files\MATLAB\R2018a\toolbox\vision\builtins\src\ocvcg\opencv\include\opencv2/imgproc/types_c.h(137): note: see
declaration of 'CV_BGR5652RGBA'
E:/BAW/study/doctoral/bgslibrary-master/package_bgs/opencv-3.4.4/build/install/include/opencv2/imgproc/types_c.h(139): error
C2365: 'CV_GRAY2BGR565': redefinition; previous definition was 'enumerator'
C:\Program Files\MATLAB\R2018a\toolbox\vision\builtins\src\ocvcg\opencv\include\opencv2/imgproc/types_c.h(139): note: see
declaration of 'CV_GRAY2BGR565'
E:/BAW/study/doctoral/bgslibrary-master/package_bgs/opencv-3.4.4/build/install/include/opencv2/imgproc/types_c.h(140): error
C2365: 'CV_BGR5652GRAY': redefinition; previous definition was 'enumerator'
C:\Program Files\MATLAB\R2018a\toolbox\vision\builtins\src\ocvcg\opencv\include\opencv2/imgproc/types_c.h(140): note: see
declaration of 'CV_BGR5652GRAY'
E:/BAW/study/doctoral/bgslibrary-master/package_bgs/opencv-3.4.4/build/install/include/opencv2/imgproc/types_c.h(142): error
C2365: 'CV_BGR2BGR555': redefinition; previous definition was 'enumerator'
C:\Program Files\MATLAB\R2018a\toolbox\vision\builtins\src\ocvcg\opencv\include\opencv2/imgproc/types_c.h(142): note: see
declaration of 'CV_BGR2BGR555'
E:/BAW/study/doctoral/bgslibrary-master/package_bgs/opencv-3.4.4/build/install/include/opencv2/imgproc/types_c.h(143): error
C2365: 'CV_RGB2BGR555': redefinition; previous definition was 'enumerator'
C:\Program Files\MATLAB\R2018a\toolbox\vision\builtins\src\ocvcg\opencv\include\opencv2/imgproc/types_c.h(143): note: see
declaration of 'CV_RGB2BGR555'
E:/BAW/study/doctoral/bgslibrary-master/package_bgs/opencv-3.4.4/build/install/include/opencv2/imgproc/types_c.h(144): error
C2365: 'CV_BGR5552BGR': redefinition; previous definition was 'enumerator'
C:\Program Files\MATLAB\R2018a\toolbox\vision\builtins\src\ocvcg\opencv\include\opencv2/imgproc/types_c.h(144): note: see
declaration of 'CV_BGR5552BGR'
E:/BAW/study/doctoral/bgslibrary-master/package_bgs/opencv-3.4.4/build/install/include/opencv2/imgproc/types_c.h(145): error
C2365: 'CV_BGR5552RGB': redefinition; previous definition was 'enumerator'
C:\Program Files\MATLAB\R2018a\toolbox\vision\builtins\src\ocvcg\opencv\include\opencv2/imgproc/types_c.h(145): note: see
declaration of 'CV_BGR5552RGB'
E:/BAW/study/doctoral/bgslibrary-master/package_bgs/opencv-3.4.4/build/install/include/opencv2/imgproc/types_c.h(146): error
C2365: 'CV_BGRA2BGR555': redefinition; previous definition was 'enumerator'
C:\Program Files\MATLAB\R2018a\toolbox\vision\builtins\src\ocvcg\opencv\include\opencv2/imgproc/types_c.h(146): note: see
declaration of 'CV_BGRA2BGR555'
E:/BAW/study/doctoral/bgslibrary-master/package_bgs/opencv-3.4.4/build/install/include/opencv2/imgproc/types_c.h(147): error
C2365: 'CV_RGBA2BGR555': redefinition; previous definition was 'enumerator'
C:\Program Files\MATLAB\R2018a\toolbox\vision\builtins\src\ocvcg\opencv\include\opencv2/imgproc/types_c.h(147): note: see
declaration of 'CV_RGBA2BGR555'
E:/BAW/study/doctoral/bgslibrary-master/package_bgs/opencv-3.4.4/build/install/include/opencv2/imgproc/types_c.h(148): error
C2365: 'CV_BGR5552BGRA': redefinition; previous definition was 'enumerator'
C:\Program Files\MATLAB\R2018a\toolbox\vision\builtins\src\ocvcg\opencv\include\opencv2/imgproc/types_c.h(148): note: see
declaration of 'CV_BGR5552BGRA'
E:/BAW/study/doctoral/bgslibrary-master/package_bgs/opencv-3.4.4/build/install/include/opencv2/imgproc/types_c.h(149): error
C2365: 'CV_BGR5552RGBA': redefinition; previous definition was 'enumerator'
C:\Program Files\MATLAB\R2018a\toolbox\vision\builtins\src\ocvcg\opencv\include\opencv2/imgproc/types_c.h(149): note: see
declaration of 'CV_BGR5552RGBA'
E:/BAW/study/doctoral/bgslibrary-master/package_bgs/opencv-3.4.4/build/install/include/opencv2/imgproc/types_c.h(151): error
C2365: 'CV_GRAY2BGR555': redefinition; previous definition was 'enumerator'
C:\Program Files\MATLAB\R2018a\toolbox\vision\builtins\src\ocvcg\opencv\include\opencv2/imgproc/types_c.h(151): note: see
declaration of 'CV_GRAY2BGR555'
E:/BAW/study/doctoral/bgslibrary-master/package_bgs/opencv-3.4.4/build/install/include/opencv2/imgproc/types_c.h(152): error
C2365: 'CV_BGR5552GRAY': redefinition; previous definition was 'enumerator'
C:\Program Files\MATLAB\R2018a\toolbox\vision\builtins\src\ocvcg\opencv\include\opencv2/imgproc/types_c.h(152): note: see
declaration of 'CV_BGR5552GRAY'
E:/BAW/study/doctoral/bgslibrary-master/package_bgs/opencv-3.4.4/build/install/include/opencv2/imgproc/types_c.h(154): error
C2365: 'CV_BGR2XYZ': redefinition; previous definition was 'enumerator'
C:\Program Files\MATLAB\R2018a\toolbox\vision\builtins\src\ocvcg\opencv\include\opencv2/imgproc/types_c.h(154): note: see
declaration of 'CV_BGR2XYZ'
E:/BAW/study/doctoral/bgslibrary-master/package_bgs/opencv-3.4.4/build/install/include/opencv2/imgproc/types_c.h(155): error
C2365: 'CV_RGB2XYZ': redefinition; previous definition was 'enumerator'
C:\Program Files\MATLAB\R2018a\toolbox\vision\builtins\src\ocvcg\opencv\include\opencv2/imgproc/types_c.h(155): note: see
declaration of 'CV_RGB2XYZ'
E:/BAW/study/doctoral/bgslibrary-master/package_bgs/opencv-3.4.4/build/install/include/opencv2/imgproc/types_c.h(156): error
C2365: 'CV_XYZ2BGR': redefinition; previous definition was 'enumerator'
C:\Program Files\MATLAB\R2018a\toolbox\vision\builtins\src\ocvcg\opencv\include\opencv2/imgproc/types_c.h(156): note: see
declaration of 'CV_XYZ2BGR'
E:/BAW/study/doctoral/bgslibrary-master/package_bgs/opencv-3.4.4/build/install/include/opencv2/imgproc/types_c.h(157): error
C2365: 'CV_XYZ2RGB': redefinition; previous definition was 'enumerator'
C:\Program Files\MATLAB\R2018a\toolbox\vision\builtins\src\ocvcg\opencv\include\opencv2/imgproc/types_c.h(157): note: see
declaration of 'CV_XYZ2RGB'
E:/BAW/study/doctoral/bgslibrary-master/package_bgs/opencv-3.4.4/build/install/include/opencv2/imgproc/types_c.h(159): error
C2365: 'CV_BGR2YCrCb': redefinition; previous definition was 'enumerator'
C:\Program Files\MATLAB\R2018a\toolbox\vision\builtins\src\ocvcg\opencv\include\opencv2/imgproc/types_c.h(159): note: see
declaration of 'CV_BGR2YCrCb'
E:/BAW/study/doctoral/bgslibrary-master/package_bgs/opencv-3.4.4/build/install/include/opencv2/imgproc/types_c.h(160): error
C2365: 'CV_RGB2YCrCb': redefinition; previous definition was 'enumerator'
C:\Program Files\MATLAB\R2018a\toolbox\vision\builtins\src\ocvcg\opencv\include\opencv2/imgproc/types_c.h(160): note: see
declaration of 'CV_RGB2YCrCb'
E:/BAW/study/doctoral/bgslibrary-master/package_bgs/opencv-3.4.4/build/install/include/opencv2/imgproc/types_c.h(161): error
C2365: 'CV_YCrCb2BGR': redefinition; previous definition was 'enumerator'
C:\Program Files\MATLAB\R2018a\toolbox\vision\builtins\src\ocvcg\opencv\include\opencv2/imgproc/types_c.h(161): note: see
declaration of 'CV_YCrCb2BGR'
E:/BAW/study/doctoral/bgslibrary-master/package_bgs/opencv-3.4.4/build/install/include/opencv2/imgproc/types_c.h(162): error
C2365: 'CV_YCrCb2RGB': redefinition; previous definition was 'enumerator'
C:\Program Files\MATLAB\R2018a\toolbox\vision\builtins\src\ocvcg\opencv\include\opencv2/imgproc/types_c.h(162): note: see
declaration of 'CV_YCrCb2RGB'
E:/BAW/study/doctoral/bgslibrary-master/package_bgs/opencv-3.4.4/build/install/include/opencv2/imgproc/types_c.h(164): error
C2365: 'CV_BGR2HSV': redefinition; previous definition was 'enumerator'
C:\Program Files\MATLAB\R2018a\toolbox\vision\builtins\src\ocvcg\opencv\include\opencv2/imgproc/types_c.h(164): note: see
declaration of 'CV_BGR2HSV'
E:/BAW/study/doctoral/bgslibrary-master/package_bgs/opencv-3.4.4/build/install/include/opencv2/imgproc/types_c.h(165): error
C2365: 'CV_RGB2HSV': redefinition; previous definition was 'enumerator'
C:\Program Files\MATLAB\R2018a\toolbox\vision\builtins\src\ocvcg\opencv\include\opencv2/imgproc/types_c.h(165): note: see
declaration of 'CV_RGB2HSV'
E:/BAW/study/doctoral/bgslibrary-master/package_bgs/opencv-3.4.4/build/install/include/opencv2/imgproc/types_c.h(167): error
C2365: 'CV_BGR2Lab': redefinition; previous definition was 'enumerator'
C:\Program Files\MATLAB\R2018a\toolbox\vision\builtins\src\ocvcg\opencv\include\opencv2/imgproc/types_c.h(167): note: see
declaration of 'CV_BGR2Lab'
E:/BAW/study/doctoral/bgslibrary-master/package_bgs/opencv-3.4.4/build/install/include/opencv2/imgproc/types_c.h(168): error
C2365: 'CV_RGB2Lab': redefinition; previous definition was 'enumerator'
C:\Program Files\MATLAB\R2018a\toolbox\vision\builtins\src\ocvcg\opencv\include\opencv2/imgproc/types_c.h(168): note: see
declaration of 'CV_RGB2Lab'
E:/BAW/study/doctoral/bgslibrary-master/package_bgs/opencv-3.4.4/build/install/include/opencv2/imgproc/types_c.h(170): error
C2365: 'CV_BayerBG2BGR': redefinition; previous definition was 'enumerator'
C:\Program Files\MATLAB\R2018a\toolbox\vision\builtins\src\ocvcg\opencv\include\opencv2/imgproc/types_c.h(170): note: see
declaration of 'CV_BayerBG2BGR'
E:/BAW/study/doctoral/bgslibrary-master/package_bgs/opencv-3.4.4/build/install/include/opencv2/imgproc/types_c.h(171): error
C2365: 'CV_BayerGB2BGR': redefinition; previous definition was 'enumerator'
C:\Program Files\MATLAB\R2018a\toolbox\vision\builtins\src\ocvcg\opencv\include\opencv2/imgproc/types_c.h(171): note: see
declaration of 'CV_BayerGB2BGR'
E:/BAW/study/doctoral/bgslibrary-master/package_bgs/opencv-3.4.4/build/install/include/opencv2/imgproc/types_c.h(172): error
C2365: 'CV_BayerRG2BGR': redefinition; previous definition was 'enumerator'
C:\Program Files\MATLAB\R2018a\toolbox\vision\builtins\src\ocvcg\opencv\include\opencv2/imgproc/types_c.h(172): note: see
declaration of 'CV_BayerRG2BGR'
E:/BAW/study/doctoral/bgslibrary-master/package_bgs/opencv-3.4.4/build/install/include/opencv2/imgproc/types_c.h(173): error
C2365: 'CV_BayerGR2BGR': redefinition; previous definition was 'enumerator'
C:\Program Files\MATLAB\R2018a\toolbox\vision\builtins\src\ocvcg\opencv\include\opencv2/imgproc/types_c.h(173): note: see
declaration of 'CV_BayerGR2BGR'
E:/BAW/study/doctoral/bgslibrary-master/package_bgs/opencv-3.4.4/build/install/include/opencv2/imgproc/types_c.h(175): error
C2365: 'CV_BayerBG2RGB': redefinition; previous definition was 'enumerator'
C:\Program Files\MATLAB\R2018a\toolbox\vision\builtins\src\ocvcg\opencv\include\opencv2/imgproc/types_c.h(175): note: see
declaration of 'CV_BayerBG2RGB'
E:/BAW/study/doctoral/bgslibrary-master/package_bgs/opencv-3.4.4/build/install/include/opencv2/imgproc/types_c.h(176): error
C2365: 'CV_BayerGB2RGB': redefinition; previous definition was 'enumerator'
C:\Program Files\MATLAB\R2018a\toolbox\vision\builtins\src\ocvcg\opencv\include\opencv2/imgproc/types_c.h(176): note: see
declaration of 'CV_BayerGB2RGB'
E:/BAW/study/doctoral/bgslibrary-master/package_bgs/opencv-3.4.4/build/install/include/opencv2/imgproc/types_c.h(177): error
C2365: 'CV_BayerRG2RGB': redefinition; previous definition was 'enumerator'
C:\Program Files\MATLAB\R2018a\toolbox\vision\builtins\src\ocvcg\opencv\include\opencv2/imgproc/types_c.h(177): note: see
declaration of 'CV_BayerRG2RGB'
E:/BAW/study/doctoral/bgslibrary-master/package_bgs/opencv-3.4.4/build/install/include/opencv2/imgproc/types_c.h(178): error
C2365: 'CV_BayerGR2RGB': redefinition; previous definition was 'enumerator'
C:\Program Files\MATLAB\R2018a\toolbox\vision\builtins\src\ocvcg\opencv\include\opencv2/imgproc/types_c.h(178): note: see
declaration of 'CV_BayerGR2RGB'
E:/BAW/study/doctoral/bgslibrary-master/package_bgs/opencv-3.4.4/build/install/include/opencv2/imgproc/types_c.h(180): error
C2365: 'CV_BGR2Luv': redefinition; previous definition was 'enumerator'
C:\Program Files\MATLAB\R2018a\toolbox\vision\builtins\src\ocvcg\opencv\include\opencv2/imgproc/types_c.h(180): note: see
declaration of 'CV_BGR2Luv'
E:/BAW/study/doctoral/bgslibrary-master/package_bgs/opencv-3.4.4/build/install/include/opencv2/imgproc/types_c.h(181): error
C2365: 'CV_RGB2Luv': redefinition; previous definition was 'enumerator'
C:\Program Files\MATLAB\R2018a\toolbox\vision\builtins\src\ocvcg\opencv\include\opencv2/imgproc/types_c.h(181): note: see
declaration of 'CV_RGB2Luv'
E:/BAW/study/doctoral/bgslibrary-master/package_bgs/opencv-3.4.4/build/install/include/opencv2/imgproc/types_c.h(182): error
C2365: 'CV_BGR2HLS': redefinition; previous definition was 'enumerator'
C:\Program Files\MATLAB\R2018a\toolbox\vision\builtins\src\ocvcg\opencv\include\opencv2/imgproc/types_c.h(182): note: see
declaration of 'CV_BGR2HLS'
E:/BAW/study/doctoral/bgslibrary-master/package_bgs/opencv-3.4.4/build/install/include/opencv2/imgproc/types_c.h(183): error
C2365: 'CV_RGB2HLS': redefinition; previous definition was 'enumerator'
C:\Program Files\MATLAB\R2018a\toolbox\vision\builtins\src\ocvcg\opencv\include\opencv2/imgproc/types_c.h(183): note: see
declaration of 'CV_RGB2HLS'
E:/BAW/study/doctoral/bgslibrary-master/package_bgs/opencv-3.4.4/build/install/include/opencv2/imgproc/types_c.h(185): error
C2365: 'CV_HSV2BGR': redefinition; previous definition was 'enumerator'
C:\Program Files\MATLAB\R2018a\toolbox\vision\builtins\src\ocvcg\opencv\include\opencv2/imgproc/types_c.h(185): note: see
declaration of 'CV_HSV2BGR'
E:/BAW/study/doctoral/bgslibrary-master/package_bgs/opencv-3.4.4/build/install/include/opencv2/imgproc/types_c.h(186): error
C2365: 'CV_HSV2RGB': redefinition; previous definition was 'enumerator'
C:\Program Files\MATLAB\R2018a\toolbox\vision\builtins\src\ocvcg\opencv\include\opencv2/imgproc/types_c.h(186): note: see
declaration of 'CV_HSV2RGB'
E:/BAW/study/doctoral/bgslibrary-master/package_bgs/opencv-3.4.4/build/install/include/opencv2/imgproc/types_c.h(188): error
C2365: 'CV_Lab2BGR': redefinition; previous definition was 'enumerator'
C:\Program Files\MATLAB\R2018a\toolbox\vision\builtins\src\ocvcg\opencv\include\opencv2/imgproc/types_c.h(188): note: see
declaration of 'CV_Lab2BGR'
E:/BAW/study/doctoral/bgslibrary-master/package_bgs/opencv-3.4.4/build/install/include/opencv2/imgproc/types_c.h(189): error
C2365: 'CV_Lab2RGB': redefinition; previous definition was 'enumerator'
C:\Program Files\MATLAB\R2018a\toolbox\vision\builtins\src\ocvcg\opencv\include\opencv2/imgproc/types_c.h(189): note: see
declaration of 'CV_Lab2RGB'
E:/BAW/study/doctoral/bgslibrary-master/package_bgs/opencv-3.4.4/build/install/include/opencv2/imgproc/types_c.h(190): error
C2365: 'CV_Luv2BGR': redefinition; previous definition was 'enumerator'
C:\Program Files\MATLAB\R2018a\toolbox\vision\builtins\src\ocvcg\opencv\include\opencv2/imgproc/types_c.h(190): note: see
declaration of 'CV_Luv2BGR'
E:/BAW/study/doctoral/bgslibrary-master/package_bgs/opencv-3.4.4/build/install/include/opencv2/imgproc/types_c.h(191): error
C2365: 'CV_Luv2RGB': redefinition; previous definition was 'enumerator'
C:\Program Files\MATLAB\R2018a\toolbox\vision\builtins\src\ocvcg\opencv\include\opencv2/imgproc/types_c.h(191): note: see
declaration of 'CV_Luv2RGB'
E:/BAW/study/doctoral/bgslibrary-master/package_bgs/opencv-3.4.4/build/install/include/opencv2/imgproc/types_c.h(192): error
C2365: 'CV_HLS2BGR': redefinition; previous definition was 'enumerator'
C:\Program Files\MATLAB\R2018a\toolbox\vision\builtins\src\ocvcg\opencv\include\opencv2/imgproc/types_c.h(192): note: see
declaration of 'CV_HLS2BGR'
E:/BAW/study/doctoral/bgslibrary-master/package_bgs/opencv-3.4.4/build/install/include/opencv2/imgproc/types_c.h(193): error
C2365: 'CV_HLS2RGB': redefinition; previous definition was 'enumerator'
C:\Program Files\MATLAB\R2018a\toolbox\vision\builtins\src\ocvcg\opencv\include\opencv2/imgproc/types_c.h(193): note: see
declaration of 'CV_HLS2RGB'
E:/BAW/study/doctoral/bgslibrary-master/package_bgs/opencv-3.4.4/build/install/include/opencv2/imgproc/types_c.h(195): error
C2365: 'CV_BayerBG2BGR_VNG': redefinition; previous definition was 'enumerator'
C:\Program Files\MATLAB\R2018a\toolbox\vision\builtins\src\ocvcg\opencv\include\opencv2/imgproc/types_c.h(195): note: see
declaration of 'CV_BayerBG2BGR_VNG'
E:/BAW/study/doctoral/bgslibrary-master/package_bgs/opencv-3.4.4/build/install/include/opencv2/imgproc/types_c.h(196): error
C2365: 'CV_BayerGB2BGR_VNG': redefinition; previous definition was 'enumerator'
C:\Program Files\MATLAB\R2018a\toolbox\vision\builtins\src\ocvcg\opencv\include\opencv2/imgproc/types_c.h(196): note: see
declaration of 'CV_BayerGB2BGR_VNG'
E:/BAW/study/doctoral/bgslibrary-master/package_bgs/opencv-3.4.4/build/install/include/opencv2/imgproc/types_c.h(197): error
C2365: 'CV_BayerRG2BGR_VNG': redefinition; previous definition was 'enumerator'
C:\Program Files\MATLAB\R2018a\toolbox\vision\builtins\src\ocvcg\opencv\include\opencv2/imgproc/types_c.h(197): note: see
declaration of 'CV_BayerRG2BGR_VNG'
E:/BAW/study/doctoral/bgslibrary-master/package_bgs/opencv-3.4.4/build/install/include/opencv2/imgproc/types_c.h(198): error
C2365: 'CV_BayerGR2BGR_VNG': redefinition; previous definition was 'enumerator'
C:\Program Files\MATLAB\R2018a\toolbox\vision\builtins\src\ocvcg\opencv\include\opencv2/imgproc/types_c.h(198): note: see
declaration of 'CV_BayerGR2BGR_VNG'
E:/BAW/study/doctoral/bgslibrary-master/package_bgs/opencv-3.4.4/build/install/include/opencv2/imgproc/types_c.h(200): error
C2365: 'CV_BayerBG2RGB_VNG': redefinition; previous definition was 'enumerator'
C:\Program Files\MATLAB\R2018a\toolbox\vision\builtins\src\ocvcg\opencv\include\opencv2/imgproc/types_c.h(200): note: see
declaration of 'CV_BayerBG2RGB_VNG'
E:/BAW/study/doctoral/bgslibrary-master/package_bgs/opencv-3.4.4/build/install/include/opencv2/imgproc/types_c.h(201): error
C2365: 'CV_BayerGB2RGB_VNG': redefinition; previous definition was 'enumerator'
C:\Program Files\MATLAB\R2018a\toolbox\vision\builtins\src\ocvcg\opencv\include\opencv2/imgproc/types_c.h(201): note: see
declaration of 'CV_BayerGB2RGB_VNG'
E:/BAW/study/doctoral/bgslibrary-master/package_bgs/opencv-3.4.4/build/install/include/opencv2/imgproc/types_c.h(202): error
C2365: 'CV_BayerRG2RGB_VNG': redefinition; previous definition was 'enumerator'
C:\Program Files\MATLAB\R2018a\toolbox\vision\builtins\src\ocvcg\opencv\include\opencv2/imgproc/types_c.h(202): note: see
declaration of 'CV_BayerRG2RGB_VNG'
E:/BAW/study/doctoral/bgslibrary-master/package_bgs/opencv-3.4.4/build/install/include/opencv2/imgproc/types_c.h(203): error
C2365: 'CV_BayerGR2RGB_VNG': redefinition; previous definition was 'enumerator'
C:\Program Files\MATLAB\R2018a\toolbox\vision\builtins\src\ocvcg\opencv\include\opencv2/imgproc/types_c.h(203): note: see
declaration of 'CV_BayerGR2RGB_VNG'
E:/BAW/study/doctoral/bgslibrary-master/package_bgs/opencv-3.4.4/build/install/include/opencv2/imgproc/types_c.h(205): error
C2365: 'CV_BGR2HSV_FULL': redefinition; previous definition was 'enumerator'
C:\Program Files\MATLAB\R2018a\toolbox\vision\builtins\src\ocvcg\opencv\include\opencv2/imgproc/types_c.h(205): note: see
declaration of 'CV_BGR2HSV_FULL'
E:/BAW/study/doctoral/bgslibrary-master/package_bgs/opencv-3.4.4/build/install/include/opencv2/imgproc/types_c.h(206): error
C2365: 'CV_RGB2HSV_FULL': redefinition; previous definition was 'enumerator'
C:\Program Files\MATLAB\R2018a\toolbox\vision\builtins\src\ocvcg\opencv\include\opencv2/imgproc/types_c.h(206): note: see
declaration of 'CV_RGB2HSV_FULL'
E:/BAW/study/doctoral/bgslibrary-master/package_bgs/opencv-3.4.4/build/install/include/opencv2/imgproc/types_c.h(207): error
C2365: 'CV_BGR2HLS_FULL': redefinition; previous definition was 'enumerator'
C:\Program Files\MATLAB\R2018a\toolbox\vision\builtins\src\ocvcg\opencv\include\opencv2/imgproc/types_c.h(207): note: see
declaration of 'CV_BGR2HLS_FULL'
E:/BAW/study/doctoral/bgslibrary-master/package_bgs/opencv-3.4.4/build/install/include/opencv2/imgproc/types_c.h(208): error
C2365: 'CV_RGB2HLS_FULL': redefinition; previous definition was 'enumerator'
C:\Program Files\MATLAB\R2018a\toolbox\vision\builtins\src\ocvcg\opencv\include\opencv2/imgproc/types_c.h(208): note: see
declaration of 'CV_RGB2HLS_FULL'
E:/BAW/study/doctoral/bgslibrary-master/package_bgs/opencv-3.4.4/build/install/include/opencv2/imgproc/types_c.h(210): error
C2365: 'CV_HSV2BGR_FULL': redefinition; previous definition was 'enumerator'
C:\Program Files\MATLAB\R2018a\toolbox\vision\builtins\src\ocvcg\opencv\include\opencv2/imgproc/types_c.h(210): note: see
declaration of 'CV_HSV2BGR_FULL'
E:/BAW/study/doctoral/bgslibrary-master/package_bgs/opencv-3.4.4/build/install/include/opencv2/imgproc/types_c.h(211): error
C2365: 'CV_HSV2RGB_FULL': redefinition; previous definition was 'enumerator'
C:\Program Files\MATLAB\R2018a\toolbox\vision\builtins\src\ocvcg\opencv\include\opencv2/imgproc/types_c.h(211): note: see
declaration of 'CV_HSV2RGB_FULL'
E:/BAW/study/doctoral/bgslibrary-master/package_bgs/opencv-3.4.4/build/install/include/opencv2/imgproc/types_c.h(212): error
C2365: 'CV_HLS2BGR_FULL': redefinition; previous definition was 'enumerator'
C:\Program Files\MATLAB\R2018a\toolbox\vision\builtins\src\ocvcg\opencv\include\opencv2/imgproc/types_c.h(212): note: see
declaration of 'CV_HLS2BGR_FULL'
E:/BAW/study/doctoral/bgslibrary-master/package_bgs/opencv-3.4.4/build/install/include/opencv2/imgproc/types_c.h(213): error
C2365: 'CV_HLS2RGB_FULL': redefinition; previous definition was 'enumerator'
C:\Program Files\MATLAB\R2018a\toolbox\vision\builtins\src\ocvcg\opencv\include\opencv2/imgproc/types_c.h(213): note: see
declaration of 'CV_HLS2RGB_FULL'
E:/BAW/study/doctoral/bgslibrary-master/package_bgs/opencv-3.4.4/build/install/include/opencv2/imgproc/types_c.h(215): error
C2365: 'CV_LBGR2Lab': redefinition; previous definition was 'enumerator'
C:\Program Files\MATLAB\R2018a\toolbox\vision\builtins\src\ocvcg\opencv\include\opencv2/imgproc/types_c.h(215): note: see
declaration of 'CV_LBGR2Lab'
E:/BAW/study/doctoral/bgslibrary-master/package_bgs/opencv-3.4.4/build/install/include/opencv2/imgproc/types_c.h(216): error
C2365: 'CV_LRGB2Lab': redefinition; previous definition was 'enumerator'
C:\Program Files\MATLAB\R2018a\toolbox\vision\builtins\src\ocvcg\opencv\include\opencv2/imgproc/types_c.h(216): note: see
declaration of 'CV_LRGB2Lab'
E:/BAW/study/doctoral/bgslibrary-master/package_bgs/opencv-3.4.4/build/install/include/opencv2/imgproc/types_c.h(217): error
C2365: 'CV_LBGR2Luv': redefinition; previous definition was 'enumerator'
C:\Program Files\MATLAB\R2018a\toolbox\vision\builtins\src\ocvcg\opencv\include\opencv2/imgproc/types_c.h(217): note: see
declaration of 'CV_LBGR2Luv'
E:/BAW/study/doctoral/bgslibrary-master/package_bgs/opencv-3.4.4/build/install/include/opencv2/imgproc/types_c.h(218): error
C2365: 'CV_LRGB2Luv': redefinition; previous definition was 'enumerator'
C:\Program Files\MATLAB\R2018a\toolbox\vision\builtins\src\ocvcg\opencv\include\opencv2/imgproc/types_c.h(218): note: see
declaration of 'CV_LRGB2Luv'
E:/BAW/study/doctoral/bgslibrary-master/package_bgs/opencv-3.4.4/build/install/include/opencv2/imgproc/types_c.h(220): error
C2365: 'CV_Lab2LBGR': redefinition; previous definition was 'enumerator'
C:\Program Files\MATLAB\R2018a\toolbox\vision\builtins\src\ocvcg\opencv\include\opencv2/imgproc/types_c.h(220): note: see
declaration of 'CV_Lab2LBGR'
E:/BAW/study/doctoral/bgslibrary-master/package_bgs/opencv-3.4.4/build/install/include/opencv2/imgproc/types_c.h(221): error
C2365: 'CV_Lab2LRGB': redefinition; previous definition was 'enumerator'
C:\Program Files\MATLAB\R2018a\toolbox\vision\builtins\src\ocvcg\opencv\include\opencv2/imgproc/types_c.h(221): note: see
declaration of 'CV_Lab2LRGB'
E:/BAW/study/doctoral/bgslibrary-master/package_bgs/opencv-3.4.4/build/install/include/opencv2/imgproc/types_c.h(222): error
C2365: 'CV_Luv2LBGR': redefinition; previous definition was 'enumerator'
C:\Program Files\MATLAB\R2018a\toolbox\vision\builtins\src\ocvcg\opencv\include\opencv2/imgproc/types_c.h(222): note: see
declaration of 'CV_Luv2LBGR'
E:/BAW/study/doctoral/bgslibrary-master/package_bgs/opencv-3.4.4/build/install/include/opencv2/imgproc/types_c.h(223): error
C2365: 'CV_Luv2LRGB': redefinition; previous definition was 'enumerator'
C:\Program Files\MATLAB\R2018a\toolbox\vision\builtins\src\ocvcg\opencv\include\opencv2/imgproc/types_c.h(223): note: see
declaration of 'CV_Luv2LRGB'
E:/BAW/study/doctoral/bgslibrary-master/package_bgs/opencv-3.4.4/build/install/include/opencv2/imgproc/types_c.h(223): fatal
error C1003: error count exceeds 100; stopping compilation
Error in compile (line 3)
mexOpenCV -v -DMEX_COMPILE_FLAG -I"../package_bgs" backgroundSubtractor_wrapper.cpp ...