Change opticalflow.cpp to motion.cpp
Add SubtractBackgroundTransform
Add ApplyMaskTransform to apply a mask in the template metadata
Add erode and dilate to BG subtraction