fix isValid, some cleanup

This commit is contained in:
Jan Grewe 2024-03-12 15:31:24 +01:00
parent aa265565f2
commit e394c346ed
2 changed files with 2 additions and 2 deletions

View File

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

View File

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