I am trying to centre an image in a frame as shown below. I am using openCV and C. I searched for linear transformations and shifting functions in openCV but got nothing so far. Would anyone be able to advise me as to which functions to use in order to achieve the effect in the 2nd image? I would greatly appreciate it.
I am trying to centre an image in a frame as shown below. I
Share
Have you looked at transform?
http://opencv.willowgarage.com/documentation/python/operations_on_arrays.html#transform