fix isValid, some cleanup
This commit is contained in:
parent
aa265565f2
commit
e394c346ed
@ -31,7 +31,7 @@ void DualcamWrapper::terminate() {
|
|||||||
|
|
||||||
|
|
||||||
bool DualcamWrapper::isOpen() {
|
bool DualcamWrapper::isOpen() {
|
||||||
return valid;
|
return cameras.IsOpen();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -159,6 +159,7 @@ ImageSettings DualcamWrapper::getImageSettings(int camindex) {
|
|||||||
Pylon::CIntegerParameter width( nodemap, "Width" );
|
Pylon::CIntegerParameter width( nodemap, "Width" );
|
||||||
Pylon::CIntegerParameter height( nodemap, "Height" );
|
Pylon::CIntegerParameter height( nodemap, "Height" );
|
||||||
settings.pixelType = pixelType;
|
settings.pixelType = pixelType;
|
||||||
|
std::cerr << "GetImageSettings pixelType: " << pixelType << std::endl;
|
||||||
settings.width = (uint32_t)width.GetValue();
|
settings.width = (uint32_t)width.GetValue();
|
||||||
settings.height = (uint32_t)height.GetValue();
|
settings.height = (uint32_t)height.GetValue();
|
||||||
settings.orientation = Pylon::EImageOrientation::ImageOrientation_TopDown;
|
settings.orientation = Pylon::EImageOrientation::ImageOrientation_TopDown;
|
||||||
|
@ -30,7 +30,6 @@ public:
|
|||||||
double gain(int camindex);
|
double gain(int camindex);
|
||||||
bool gain(double gain_db, int camindex=-1);
|
bool gain(double gain_db, int camindex=-1);
|
||||||
Pylon::CInstantCameraArray &getCameraArray();
|
Pylon::CInstantCameraArray &getCameraArray();
|
||||||
// Pylon::CInstantCamera getCamera(int camindex);
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void resetCamera(int camindex);
|
void resetCamera(int camindex);
|
||||||
|
Loading…
Reference in New Issue
Block a user