Added things needed by MotionStatistics.
Merge remote-tracking branch 'remotes/origin/hotfix-coordinatesystem' into Vidproc