[Jderobot-admin] jderobot-r1080 - trunk/src/stable/libs/geometry/progeo
rocapal en jderobot.org
rocapal en jderobot.org
Mar Oct 29 20:36:24 CET 2013
Author: rocapal
Date: 2013-10-29 20:36:23 +0100 (Tue, 29 Oct 2013)
New Revision: 1080
Modified:
trunk/src/stable/libs/geometry/progeo/Progeo.cpp
trunk/src/stable/libs/geometry/progeo/Progeo.h
Log:
#61 added default param in saveFile
Modified: trunk/src/stable/libs/geometry/progeo/Progeo.cpp
===================================================================
--- trunk/src/stable/libs/geometry/progeo/Progeo.cpp 2013-10-28 11:29:26 UTC (rev 1079)
+++ trunk/src/stable/libs/geometry/progeo/Progeo.cpp 2013-10-29 19:36:23 UTC (rev 1080)
@@ -750,7 +750,7 @@
return ss.str().c_str();
}
-void Progeo::saveToFile (std::string filename)
+void Progeo::saveToFile (std::string filename, bool updateMatrix)
{
xmlDocPtr doc = NULL;
xmlNodePtr root_node = NULL;
@@ -759,8 +759,11 @@
xmlNodePtr node_k_matrix = NULL;
xmlNodePtr node_rt_matrix = NULL;
- updateKMatrix();
- updateRTMatrix();
+ if (updateMatrix)
+ {
+ updateKMatrix();
+ updateRTMatrix();
+ }
char buff[256];
int i, j;
Modified: trunk/src/stable/libs/geometry/progeo/Progeo.h
===================================================================
--- trunk/src/stable/libs/geometry/progeo/Progeo.h 2013-10-28 11:29:26 UTC (rev 1079)
+++ trunk/src/stable/libs/geometry/progeo/Progeo.h 2013-10-29 19:36:23 UTC (rev 1080)
@@ -87,7 +87,7 @@
void pixel2optical (Eigen::Vector3d &point);
void optical2pixel (Eigen::Vector3d &point);
- void saveToFile (std::string filename);
+ void saveToFile (std::string filename, bool updateMatrix=true);
void readFromFile(std::string filename);
void backprojectCV(Eigen::Vector3d point, Eigen::Vector4d& pro);
More information about the Jderobot-admin
mailing list