High performance motion analysis for video restoration