1
General / Re: Issue of orthophoto with DJI Phantom4 Multispectral
« on: March 18, 2021, 08:33:15 PM »
Different dataset offcourse than mention in this thread but issues seems 99.9% the same. We still have the issue in 1.7.2
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
errors = Metashape.Vector([0,0,0,0])
n = 0
for camera in chunk.cameras:
if not camera.transform:
continue
if not camera.reference.location:
continue
estimated_geoc = chunk.transform.matrix.mulp(camera.center)
error = estimated_geoc - chunk.crs.unproject(camera.reference.location)
m = chunk.crs.localframe(chunk.transform.matrix.mulp(camera.center))
error = m.mulv(error)
errors += Metashape.Vector([error.x **2, error.y **2, error.z **2, error.norm() **2])
n += 1
total_error = math.sqrt(errors[3] / n)
print("total_error", total_error)