I think undistortPoints has a memory issue. When I pass 1039680x2 matrix as the first argument of the function, Matlab 2016a gives following error. Any idea how I can resolve this problem?
Requested 2079360x2079360 (32214.4GB) array exceeds maximum array size preference. Creation of arrays greater than this limit may take a long time and cause MATLAB to become unresponsive. See array size limit or preference panel for more information.