hello ksunglieng,
given a chunk, the root mean square error for all aligned cameras can be calculated as follows:
import numpy as np
T = chunk.transform.matrix
crs = chunk.crs
errcam=[]
for c in chunk.cameras:
if not c.reference.enabled:
continue
c_est = T.mulp(c.center) # estimated camera center in geoccs
errloc = c_est - ps.CoordinateSystem.transform(c.reference.location, crs, crs.geoccs) #err in geoccs
errcam.append(crs.localframe(c_est).rotation() * errloc) #err in chunk crs
errcam = np.array(errcam)
rms = np.sqrt(np.mean(np.square(errcam),axis = 0)) # rms camera errors (X,Y,Z) or Total error in reference pane
as you can see in attachment...