From e394c346ed51a14da755647b4623139b0d31fcdf Mon Sep 17 00:00:00 2001 From: Jan Grewe Date: Tue, 12 Mar 2024 15:31:24 +0100 Subject: [PATCH] fix isValid, some cleanup --- dualcamwrapper.cpp | 3 ++- dualcamwrapper.h | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dualcamwrapper.cpp b/dualcamwrapper.cpp index 2713e8b..dd67936 100644 --- a/dualcamwrapper.cpp +++ b/dualcamwrapper.cpp @@ -31,7 +31,7 @@ void DualcamWrapper::terminate() { bool DualcamWrapper::isOpen() { - return valid; + return cameras.IsOpen(); } @@ -159,6 +159,7 @@ ImageSettings DualcamWrapper::getImageSettings(int camindex) { Pylon::CIntegerParameter width( nodemap, "Width" ); Pylon::CIntegerParameter height( nodemap, "Height" ); settings.pixelType = pixelType; + std::cerr << "GetImageSettings pixelType: " << pixelType << std::endl; settings.width = (uint32_t)width.GetValue(); settings.height = (uint32_t)height.GetValue(); settings.orientation = Pylon::EImageOrientation::ImageOrientation_TopDown; diff --git a/dualcamwrapper.h b/dualcamwrapper.h index eecc660..8c48757 100644 --- a/dualcamwrapper.h +++ b/dualcamwrapper.h @@ -30,7 +30,6 @@ public: double gain(int camindex); bool gain(double gain_db, int camindex=-1); Pylon::CInstantCameraArray &getCameraArray(); - // Pylon::CInstantCamera getCamera(int camindex); private: void resetCamera(int camindex);