summaryrefslogtreecommitdiff
path: root/src/Camera.h
diff options
context:
space:
mode:
authordon bright <hugh.m.bright@gmail.com>2013-03-03 18:20:18 (GMT)
committerdon bright <hugh.m.bright@gmail.com>2013-03-03 18:20:18 (GMT)
commitf190b9605c11d9b49102046f578a18de2f8d84b1 (patch)
treed407b71a412a64a862a5c554ceb21123a3e6b65c /src/Camera.h
parent9f5c6133bf55713ada6133d7beffbeddd86ffecf (diff)
add imgsize cmdline parameter for png output
Diffstat (limited to 'src/Camera.h')
-rw-r--r--src/Camera.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/Camera.h b/src/Camera.h
index b35ef0c..f7cd257 100644
--- a/src/Camera.h
+++ b/src/Camera.h
@@ -16,7 +16,6 @@ There are two different types of cameras represented in this class:
#include <vector>
#include <Eigen/Geometry>
-#include <boost/variant.hpp>
class Camera
{
@@ -37,6 +36,8 @@ public:
Eigen::Vector3d cameradir(1, 1, -0.5);
eye = center - 500 * cameradir;
}
+ pixel_width = 512;
+ pixel_height = 512;
}
void setup( std::vector<double> params ) {
@@ -63,6 +64,9 @@ public:
Eigen::Vector3d object_trans;
Eigen::Vector3d object_rot;
double viewer_distance;
+
+ unsigned int pixel_width;
+ unsigned int pixel_height;
};
contact: Jan Huwald // Impressum