Video Completion Scheme with OpenCV
I'm trying to perform a video stabilization with opencv and c++. I have been able to perform motion estimation and compensation but there exists black areas around the edges of the video as a result.
A sample image showing side by side comparison of an original and stabilized image frame is found below
I understand that it requires that I perform video completion to extrapolate pixels onto the missing image areas but I have no idea how to go about this.
I have heard about mosaicking, motion impainting and space time video completion but I have no idea how to implement these, google searches haven't proved very useful as well. I was hoping for at least a link that shows a guide to carrying this out or any push in the direction to achieve this.
What have you tried? There is lots of information available if you search google. Which kind are you interested in?
an example image would be helpful.
@Tetragramm and @berak I have edited the question accordingly, any video completion method would be fine. Thanks
http://lmgtfy.com/?q=video+inpainting+with+stabilization
The first two results seem to be exactly what you're looking for.
Is it really important that you keep those border pixels? Most approaches just take the inner box of valid pixels and use that area only. Just cutting of the blacked edges.
@StevenPuttemans Yes it is important that the original image resolution is preserved.