-
question for trigonometry geniuses
hi people
I’m looking for an equation to ‘linearise’ the pixel motion of a panning camera. I thought a simple Sine displacement map would do the trick but unfortunately the curve appears to be a little trickier than that. let me explain.
I have a camera on a motion controlled pan head. the nodal point of the lens is perfectly on the axis of rotation. The camera is panning at a constant speed. In the shot I have a telephone pole which slowly moves across the screen from left to right. I want the pole to move exactly 1 screen pixel per frame. I have adjusted the pan speed of the motion control head so that the edge of the pole takes exactly 2048 frames to go from left edge to right edge of frame (I’m shooting 2k so 2048 pixels wide). I thought this would give me a pole moving exactly 1 pixel per frame. But No. At the start , middle and end the pole is in the right place (x =0, 1024 and 2048) but In between these points the pole accelerates and decelerates. I rendered a streak image of the pole and it appeared that the divergance was Sine based and given it’s a rotation situation I assumed that it must be correct. So I generated a 32bit displacement map using a horizontal ramp that went from 50% grey to white to grey to black and back to grey following a perfect sine curve. This worked really well but when I matched it to the curve of the moving pole it didn’t quite fit (mainly near the edges of the frame, teh pole seesm to move off quicker than a sine curve would dictate). So… I replicated my situation using a perfect computational camera in After Effects to see if it was real world lens errors but I got the same result.
if any of that made sense to anyone I’ll be amazed.
I have put up a small 1fps movie and a couple of jpegs of the after effects modeled version to help illustrate the problem.
https://www.dlab.com.au/pan/perfect%20pan%20small-1fps.mov
https://www.dlab.com.au/pan/perfect-pan-(00512).jpg
https://www.dlabcomau:@dlab.com.au/pan/perfect-pan-map.jpg
https://www.dlabcomau:@dlab.com.au/pan/displace-(00000)_1.jpgany suggestions on how to work out the right equation or how to otherwise create the perfect displacement map or any other means of mathematically correcting the divergence would be greatly appreciated.
cheers../daniel
