easyidp.metashape.apply_transform_matrix

easyidp.metashape.apply_transform_matrix(points_xyz, matrix)

在齐次坐标中变换一个或多个点。等同于Metashape.Matrix.mulp()或Metashape.Matrix.mulv()

参数:
  • matrix (np.ndarray) -- 4x4变换numpy数组

  • points_df (np.ndarray) --

    例如:

    # 1x3 single point
    >>> np.array([1,2,3])
       x  y  z
    0  1  2  3
    
    # nx3 points
    >>> np.array([[1,2,3], [4,5,6], ...])
       x  y  z
    0  1  2  3
    1  4  5  6
    ...
    

返回:

输出 -- 与输入points_np大小相同:

   x  y  z
0  1  2  3
1  4  5  6

返回类型:

pd.DataFrame