easyidp.pix4d.read_xyz#
- easyidp.pix4d.read_xyz(xyz_path)#
read pix4d file
*_offset.xyz
- パラメータ:
xyz_path (str) -- the path to target offset.xyz file
- 戻り値:
x, y, z
- 戻り値の型:
float
注釈
The offset.xyz file looks like:
368009.000 3955854.000 97.000
サンプル
Data prepare
>>> import numpy as np >>> np.set_printoptions(suppress=True) >>> import easyidp as idp >>> test_data = idp.data.TestData() >>> param_folder = str(test_data.pix4d.maize_folder / "1_initial" / "params") >>> param = idp.pix4d.parse_p4d_param_folder(param_folder)
Then use this function:
>>> idp.pix4d.read_xyz(param['xyz']) array([ 368009., 3955854., 97.])