aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/argaze/AreaOfInterest/AOI3DScene.py10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/argaze/AreaOfInterest/AOI3DScene.py b/src/argaze/AreaOfInterest/AOI3DScene.py
index e081f57..070789e 100644
--- a/src/argaze/AreaOfInterest/AOI3DScene.py
+++ b/src/argaze/AreaOfInterest/AOI3DScene.py
@@ -14,8 +14,8 @@ import cv2 as cv
T0 = numpy.array([0., 0., 0.])
"""Define no translation vector."""
-R0 = numpy.array([0., 0., 0.])
-"""Define no rotation vector."""
+R0 = numpy.array([[1., 0., 0.], [0., 1., 0.], [0., 0., 1.]])
+"""Define no rotation matrix."""
K0 = numpy.array([[1., 0., 0.], [0., 1., 0.], [0., 0., 0.]])
"""Define default camera intrinsic parameters matrix."""
@@ -188,7 +188,7 @@ class AOI3DScene(AOIFeatures.AOIScene):
* **Arguments:**
- translation vector
- - [axis-angle](https://en.wikipedia.org/wiki/Axis%E2%80%93angle_representation) rotation vector
+ - rotation matrix
- camera intrinsic parameters matrix
- camera distorsion coefficients vector
"""
@@ -210,13 +210,11 @@ class AOI3DScene(AOIFeatures.AOIScene):
* **Arguments:**
- translation vector
- - [axis-angle](https://en.wikipedia.org/wiki/Axis%E2%80%93angle_representation) rotation vector
+ - rotation matrix
"""
aoi3D_scene = AOI3DScene()
- R, _ = cv.Rodrigues(R)
-
for name, aoi3D in self.items():
aoi3D_scene[name] = aoi3D.dot(R.T) + T