Affine transformation of a portion of an image-C++ [closed]

asked 2013-04-03 14:40:22 -0500

matteo gravatar image

i have 2 frames of a video stream given by a moving camera . My aim is to blacken, in the 2° frame, the portion of the image that represents the same thing of the first frame. Obviously the images represent partially ( some background is removed and other is added) the same thing but after a roto-translation (an affine transformation caused by the camera movement). My idea is to calculate the AffineTransformation matrix (through the OpenCV function) using 3 matching features found by SURF algorithm. After that i would transform the coordinates of each pixel of the image (via the matrix just found), not the whole image!! and blacken the "transformated" pixels. Could someone write me a simple C++ code that makes this last passage?! thanks

edit retag flag offensive reopen merge delete

Closed for the following reason not a real question by StevenPuttemans
close date 2013-04-04 02:46:12.594274