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);