summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMartin Miller2017-03-27 12:55:50 -0500
committerMartin Miller2017-03-27 12:55:50 -0500
commitc1a9f1e5c765632f3ce8dea7304935f06d769172 (patch)
tree11a4417f220f9c45a639b0b80eace0aa41bba831 /src
parentb08113d11d181cbcca9103d8f67c60b9905ec972 (diff)
downloadrefslam-c1a9f1e5c765632f3ce8dea7304935f06d769172.zip
refslam-c1a9f1e5c765632f3ce8dea7304935f06d769172.tar.gz
Add comments to Camera
Diffstat (limited to 'src')
-rw-r--r--src/camera.cpp23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/camera.cpp b/src/camera.cpp
index d522cd6..60d33bd 100644
--- a/src/camera.cpp
+++ b/src/camera.cpp
@@ -111,18 +111,41 @@ Camera::K4 ( )
} /* ----- end of method Camera::K4 ----- */
+/*
+ *--------------------------------------------------------------------------------------
+ * Class: Camera
+ * Method: Camera :: K
+ * Description: Returns the 3x3 camera matrix.
+ *--------------------------------------------------------------------------------------
+ */
Matrix<double,3,3>
Camera::K ( )
{
return _K ;
} /* ----- end of method Camera::K ----- */
+/*
+ *--------------------------------------------------------------------------------------
+ * Class: Camera
+ * Method: Camera :: d
+ * Description: Returns the distortion coefficients.
+ *--------------------------------------------------------------------------------------
+ */
Vector4d
Camera::d ( )
{
return _d;
} /* ----- end of method Camera::d ----- */
+/*
+ *--------------------------------------------------------------------------------------
+ * Class: Camera
+ * Method: Camera :: img2body
+ * Description: Returns image points (pixel coordinates) in the body frame.
+ * That is xi: -> K -> xc -> Rc2b -> xb, the point is tranformed to the camera
+ * frame by K and to the body frame by Rc2b.
+ *--------------------------------------------------------------------------------------
+ */
Vector3d
Camera::img2body ( Vector3d &xi )
{