First time here? Check out the FAQ!
answered 2013-07-29 10:00:42 -0600
What's stopping you subtract the background independently
cv::Mat temp; cv::subtract(camFrame,foreground,temp); cv::threshold(temp,temp,25,255,cv::THRESH_BINARY);