From a9e5756edad6fe20b87bfc23a9edabce597ba7d7 Mon Sep 17 00:00:00 2001 From: ponchio Date: Thu, 6 Nov 2008 15:36:44 +0000 Subject: [PATCH] Distortion parameter zeroed on creation! --- vcg/math/camera.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/vcg/math/camera.h b/vcg/math/camera.h index d50e6e0a..1a003e80 100644 --- a/vcg/math/camera.h +++ b/vcg/math/camera.h @@ -157,7 +157,9 @@ public: CenterPx(vcg::Point2(0.0,0.0)), DistorCenterPx(vcg::Point2(0.0,0.0)), cameraType(0) - {} + { + k[0] = k[1] = k[2] = k[3] = 0; + } //------ camera intrinsics ScalarType FocalMm; /// Focal Distance: the distance between focal center and image plane. Expressed in mm