easyidp.reconstruct.ChunkTransform#
- class easyidp.reconstruct.ChunkTransform#
Similar API wrapper for Metashape Python API
class Metashape.ChunkTransform
- __init__()#
Methods
__init__
()Attributes
Transformation matrix
Rotation compone
Translation compone
Scale compone
Inverse matrix
- matrix#
Transformation matrix
- matrix_inv#
Inverse matrix
备注
Inspired from Kunihiro Kodama’s Metashape API usage <kkodama@kazusa.or.jp>
>>> import Metashape >>> chunk = Metashape.app.document.chunk() >>> transm = chunk.transform.matrix >>> invm = Metashape.Matrix.inv(chunk.transform.matrix)
invm.mulp(local_vec) –> transform chunk local coord to world coord (if you handle vec in local coord)
How to calculate from xml data: Agisoft Forum: Topic: Camera coordinates to world
- rotation#
Rotation compone
- scale#
Scale compone
- translation#
Translation compone