Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Used of BackgroundSubtractorMOG2::operator() in OpenCV-3.0.0

Hi,

I need a clarification about the use of BackgroundSubtractorMOG2::operator() in OpenCV-3.0.0. What is the data type of the input image that this operatorworks on? Is is 32F or UINT8? When I used BackgroundSubtractorMOG::operator(), it required the input image to be UINT8. In BackgroundSubtractorMOG2::operator(), I sent the input image as 32F and it didn't give me an error. However, I was wondering if inside the code, it truncates a 32F data into UINT8. This worries me, as it would reduce the resolution of the image inside.

Your help is appreciated.