I have found the following problem while I was trying to run the code with "Event Camera Dataset(boxes_6dof.bag)".
Error using ones
Requested 86400x86400 (55.6GB) 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.
Error in lsqncommon (line 148)
Jstr = sparse(ones(Jrows,Jcols));
Error in lsqcurvefit (line 257)
lsqncommon(funfcn,xCurrent,lb,ub,options,defaultopt,caller,...
Error in lscftsh
Error in cameraParameters/undistortPointsImpl (line 221)
lscftsh(@this.distortPoints, points, [], points, [], [], options);
Error in undistortPoints (line 91)
undistortedPointsDouble = undistortPointsImpl(cameraParams, pointsDouble);