subsense icon indicating copy to clipboard operation
subsense copied to clipboard

compilation fails on ubuntu

Open lrigazio opened this issue 7 years ago • 2 comments

please see this issue - there is either something wrong w. openCV or something weird w/ class-structure

/usr/bin/c++ -DSubsense_EXPORTS -I/home/luca/devel/subsense -I/usr/local/include -std=c++11 -Ofast -fPIC -o CMakeFiles/Subsense.dir/Subsense/API.cpp.o -c /home/luca/devel/subsense/Subsense/API.cpp /home/luca/devel/subsense/Subsense/API.cpp: In function ‘void ss_apply(SSContext*, void*, void*)’: /home/luca/devel/subsense/Subsense/API.cpp:70:22: error: ‘class BackgroundSubtractorLBSP’ has no member named ‘apply’ ctx->subtractor->apply(input_img, output_img);

lrigazio avatar Sep 20 '17 21:09 lrigazio

You can comment this line off if you just want C code integration. This line is related to the python bindings.

hitsx avatar Oct 20 '17 06:10 hitsx

LBSP is the base class of Susense and LOBSTER, but it has no apply method. fix the problem just add one line: virtual void apply(cv::InputArray image, cv::OutputArray fgmask, double learningRateOverride = 0); in: BackgroundSubtractorLBSP.h

Chernfalin avatar Jun 24 '20 08:06 Chernfalin