diff --git a/dualcamwrapper.cpp b/dualcamwrapper.cpp index 9c7e7fb..d897eff 100644 --- a/dualcamwrapper.cpp +++ b/dualcamwrapper.cpp @@ -192,17 +192,12 @@ bool DualcamWrapper::grabFrame(MyImage &img, int camindex) { void DualcamWrapper::setROI() { - std::cerr << "Setting ROI" << std::endl; for (int camindex = 0; camindex < 2; camindex++){ - std::cerr << "\t" << camindex << std::endl; + qDebug() << "Setting ROI: w" << layout.rois[camindex].width << " h: "<< layout.rois[camindex].height << " x " << layout.rois[camindex].x << " y " << layout.rois[camindex].y << std::endl; GenApi::INodeMap &nodemap = getNodemap(camindex); - qDebug() << "Setting width" << layout.rois[camindex].width; Pylon::CIntegerParameter(nodemap, "Width").SetValue(layout.rois[camindex].width); - qDebug() << "Setting height" << layout.rois[0].height; Pylon::CIntegerParameter(nodemap, "Height").SetValue(layout.rois[camindex].height); - qDebug() << "Setting xoffset" << layout.rois[camindex].x; Pylon::CIntegerParameter(nodemap, "OffsetX").SetValue(layout.rois[camindex].x); - qDebug() << "Setting yoffset" << layout.rois[camindex].y; Pylon::CIntegerParameter(nodemap, "OffsetY").SetValue(layout.rois[camindex].y); } } diff --git a/myimage.cpp b/myimage.cpp index ef4717f..3d7e197 100644 --- a/myimage.cpp +++ b/myimage.cpp @@ -27,6 +27,8 @@ bool MyImage::setFrame( Pylon::CPylonImage &img) { img_width = img.GetWidth(); img_height = img.GetHeight(); memcpy(&buffer, img.GetBuffer(), img.GetImageSize()); + auto t = std::chrono::system_clock::now(); + img_timestamp = std::chrono::system_clock::to_time_t(t); } return valid; } diff --git a/writer.cpp b/writer.cpp index 045e15d..d0caa2d 100644 --- a/writer.cpp +++ b/writer.cpp @@ -1,9 +1,7 @@ #include "writer.h" #include #include - #include -using namespace std::chrono; void Writer::setVideoSpecs(VideoSpecs specs) { videoSpecs = specs;