Returns the mean error between a matrix of grid points and a matrix of transformed grid points (produced by imagePlaneGridTransform
). This function is called internally by the function resampleGridImagePoints
in evaluating the goodness of fit between imaged grid points and grid points produced by an image perspective model.
imagePlaneGridTransformError(p, nx, ny, grid)
a vector of 12 grid parameters (see imagePlaneGridTransform
).
the number of points along the first dimension.
the number of points along the second dimension.
a matrix of grid points to be compared against the model grid points.
the mean error.