Skip to content

Commit

Permalink
procamtoolkit supports normal 20 image-style gray code decoding. came…
Browse files Browse the repository at this point in the history
…ra calibrate got hacked a bit.
  • Loading branch information
kylemcdonald committed Nov 6, 2011
1 parent ed8fef7 commit fd94de4
Show file tree
Hide file tree
Showing 6 changed files with 427 additions and 817 deletions.
2 changes: 1 addition & 1 deletion CameraCalibrate/src/main.cpp
Expand Up @@ -3,6 +3,6 @@

int main() {
ofAppGlutWindow window;
ofSetupOpenGL(&window, 640, 480, OF_WINDOW);
ofSetupOpenGL(&window, 1024, 768, OF_WINDOW);
ofRunApp(new testApp());
}
11 changes: 11 additions & 0 deletions CameraCalibrate/src/testApp.cpp
Expand Up @@ -3,6 +3,8 @@
using namespace ofxCv;
using namespace cv;

int curFrame = 0;

void testApp::setup() {
ofSetVerticalSync(true);
ofSetDrawBitmapMode(OF_BITMAPMODE_MODEL_BILLBOARD);
Expand Down Expand Up @@ -40,6 +42,8 @@ void testApp::draw() {
calibration.draw3d();
cam.end();

calibration.draw(curFrame);

// draw info
stringstream intrinsics, distcoeffs;
intrinsics << "fov: " << toOf(calibration.getDistortedIntrinsics().getFov());
Expand All @@ -53,4 +57,11 @@ void testApp::draw() {
}

void testApp::keyPressed(int key) {
if(key == OF_KEY_DOWN) {
curFrame++;
}
if(key == OF_KEY_UP) {
curFrame--;
}
curFrame = ofClamp(curFrame, 0, calibration.size() - 1);
}

0 comments on commit fd94de4

Please sign in to comment.