easyidp.reconstruct.ChunkTransform#

class easyidp.reconstruct.ChunkTransform#

Similar API wrapper for Metashape Python API class Metashape.ChunkTransform

__init__()#

Methods

Attributes

matrix

Transformation matrix

rotation

Rotation compone

translation

Translation compone

scale

Scale compone

matrix_inv

Inverse matrix

matrix#

Transformation matrix

matrix_inv#

Inverse matrix

Note

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