I am trying to detect motion in a video taken by non-static camera in this case UAV. what I planned to do is to remove the camera motion effect by aligning the frames as much as they overlap then make simple differencing, Here what I did - I used SURF to get matching points between frames - I supplied those points to homography to get the matrix H - I wrapped the new frame using H * all done using openCV * to save computation power and time I used mask with SURF, the mask is 4 squares one at each corner
the concept works great for static image but in the video the wrapped frame is giving strange results! sometimes good sometimes bad