stream_hacks to main #2
|
@ -110,10 +110,11 @@ class Process(TransformProcess):
|
|||
# Convert spherical coordiates to quaternions
|
||||
# Based on https://github.com/moble/quaternion/blob/8f6fc306306c45f0bf79331a22ef3998e4d187bc/src/quaternion/__init__.py#L599
|
||||
quats = np.array([np.cos(pha/2) * np.cos(theta/2),
|
||||
np.sin(pha/2) * np.cos(theta/2),
|
||||
-np.sin(pha/2) * np.sin(theta/2),
|
||||
np.cos(pha/2) * np.sin(theta/2),
|
||||
-np.sin(pha/2) * np.sin(theta/2)]).T
|
||||
return [Quaternion(*quat) for quat in quats], aspect_ratio
|
||||
np.sin(pha/2) * np.cos(theta/2)]).T
|
||||
quat_arr = [Quaternion(*quat) for quat in quats]
|
||||
return quat_arr, aspect_ratio
|
||||
|
||||
def process(self):
|
||||
landmarks = self._inputs['landmarks'].get()
|
||||
|
|
Loading…
Reference in New Issue