The goal of this function is to embed an image into a video. The basic use is to highlight object of interest. Another example is a case you wish to hide something on the video- like someones face etc... This function allows you to enter the image to video frames, where user chooses the frames, the image mask ROI, image position inside video, image opacity, image angle etc...
This is quite powerful tool allowing us to plant new objects into a given video.
See expected demo results on Youtube: https://www.youtube.com/watch?v=vMHQhFFefx8&feature=youtu.be
- Changed video encoding, forcing usage of VidoeWriter for Matlab version later the 7.0 .