easyidp.reconstruct.ChunkTransform

class easyidp.reconstruct.ChunkTransform

类似于Metashape Python API class Metashape.ChunkTransform 的API包装器

__init__()

Methods

Attributes

matrix

变换矩阵

rotation

旋转分量

translation

平移分量

scale

缩放分量

matrix_inv

逆矩阵

matrix

变换矩阵

matrix_inv

逆矩阵

备注

受Kunihiro Kodama的Metashape API用法启发 <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) --> 将块的本地坐标转换为世界坐标(如果您处理的是本地坐标中的向量)

如何从xml数据计算:Agisoft论坛:主题:相机坐标到世界坐标

rotation

旋转分量

scale

缩放分量

translation

平移分量