Single affine parameter vector for whole image
I have an image of size 240x320. I want to calculate single affine parameter vector (6 parameter vector) for whole image using pyramids based Lukas and Kanade. The routine availbale in opencv calculates the dense model parameters, i.e. the parameters for all pixels separately, But i want one affine model for whole image. I have written my own routine but it slower, is there a builtin method in opencv..?
btw, calcOpticalFlowFarneback does dense optical flow per pixel, the pyrLK version does not.
then, there is camera motion, and motion from (various) objects in the scene, all going into a possibly opposite direction. what's your plan here ? what exactly are you looking for ?
Actually I have images of a planar surface like floor and I want to calculate afine transform parameters between two floor images without using any feature points. Because in some situations we don't have feature points available. If there is another method for this problem, please tell. I don't need dense flow, I need one constant flow value(affine) for a single image.
have you tried phase correlation ?
No, in my case motion is large. Is that effective ?