Parsing
parsing
¶
Functions¶
make_4x4_transform(rotation_str, translation_str, scale_str='1')
¶
Convenience function to make a 4x4 matrix from the string format used by Metashape
Parameters:
Name | Type | Description | Default |
---|---|---|---|
rotation_str |
str
|
Row major with 9 entries |
required |
translation_str |
str
|
3 entries |
required |
scale_str |
str
|
single value. Defaults to "1". |
'1'
|
Returns:
Type | Description |
---|---|
np.ndarray: (4, 4) A homogenous transform mapping from cam to world |