internal void initVideo(string filePath) { videoFileReader = new VideoFileReader(); videoFileReader.Open(filePath); VideoWidth = videoFileReader.Width; VideoHeight = videoFileReader.Height; VideoFrameRate = videoFileReader.FrameRate; motionDetector = new MotionDetector(mainWindow); VideoInitialized = true; }