A C++ implementation of a background subtraction technique for moving foreground detection