I have a few double integrals that I have to approximate that are based on getting motion parameters from a sequence of images, and I have chosen to use Riemann Sums for that purpose. These integrals are under the domain R = [-w,w]x[-h,h], where 2w and 2h are the image width and height respectively. What would be the appropriate number of subdivisions m and n that I can give so that I can use code to evaluate them in any case? I am confused as we don't have access to all values of x_ij and y_ij as m and n increases.
I was thinking of considering each of the image frames as my grid of values, but I don't know what each of the pixel width and height would be. I am not even sure if this is the correct approach to approximating the integrals, so please suggest if there are other appropriate ways.
Here is one of the integrals that I am approximating:-
∫∫((u-ur)β - (v - vr)α)(-xyβ + (y^2 + 1)α)dxdy