Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed calibration saving

  • Loading branch information...
commit 05cdd592a667d67e02cee607c45a191d43652f4b 1 parent 60e3cd3
@Spacerat authored
Showing with 7 additions and 11 deletions.
  1. +4 −8 MyCameraWindow.cpp
  2. +1 −1  moc_MyCameraWindow.cpp
  3. +2 −2 vision.c
View
12 MyCameraWindow.cpp
@@ -54,14 +54,10 @@ MyCameraWindow::MyCameraWindow(CvCapture * cam, QWidget * parent) : QWidget(pare
startTimer(50);
}
-void MyCameraWindow::timerEvent(QTimerEvent*) {
-{
- if(e->type() == (QEvent::Type)1001)
- {
- vision_ui_lock_image();
- updateUIImage();
- vision_ui_unlock_image();
- }
+void MyCameraWindow::timerEvent(QTimerEvent *) {
+ vision_ui_lock_image();
+ updateUIImage();
+ vision_ui_unlock_image();
}
void MyCameraWindow::updateUIImage() {
View
2  moc_MyCameraWindow.cpp
@@ -1,7 +1,7 @@
/****************************************************************************
** Meta object code from reading C++ file 'MyCameraWindow.h'
**
-** Created: Wed May 9 19:54:41 2012
+** Created: Wed May 9 21:35:59 2012
** by: The Qt Meta Object Compiler version 62 (Qt 4.6.3)
**
** WARNING! All changes made in this file will be lost!
View
4 vision.c
@@ -112,8 +112,8 @@ Writes the calibration values from the given file.
int writeCalibration(const char * fileName) {
FILE * f = fopen(fileName, "wb");
if(!f) return -1;
- fprintf(f, "%f", hueCal);
- fprintf(f, "%f", hueCal);
+ fprintf(f, "%f\n", hueCal);
+ fprintf(f, "%f\n", satCal);
fclose(f);
return 0;
}
Please sign in to comment.
Something went wrong with that request. Please try again.