From 7695eddcdc13c612d672322e6c057215d54e9a58 Mon Sep 17 00:00:00 2001
From: asantamaria <asantamaria@iri.upc.edu>
Date: Fri, 16 Dec 2016 00:24:40 +0100
Subject: [PATCH] added some propierties. minor changes

---
 src/mvbluefox3.cpp | 24 ++++++++++++------------
 1 file changed, 12 insertions(+), 12 deletions(-)

diff --git a/src/mvbluefox3.cpp b/src/mvbluefox3.cpp
index 94c2a5a..e06e6e6 100644
--- a/src/mvbluefox3.cpp
+++ b/src/mvbluefox3.cpp
@@ -49,15 +49,6 @@ CMvbluefox3::~CMvbluefox3()
 
 void CMvbluefox3::OpenDevice(void)
 {
-// customDataDirectory
-// userControlledImageProcessingEnable
-
-  // Default firmware settings.
-  //The device will be initialized with the drivers default values.
-  // WriteProperty(this->device_->loadSettings, dlsNoLoad);
-
-  // WriteProperty(this->device_->userControlledImageProcessingEnable, bTrue);
-
   // Open the device
   try { this->device_->open(); }
   catch(mvIMPACT::acquire::ImpactAcquireException& e )
@@ -75,6 +66,10 @@ void CMvbluefox3::OpenDevice(void)
   this->lut_ctrl_ = new mvIMPACT::acquire::GenICam::LUTControl(this->device_);
   this->stats_ = new mvIMPACT::acquire::Statistics(this->device_);
 
+  this->bf_sets_->cameraSetting.restoreDefault();
+  this->bf_sets_->imageDestination.restoreDefault();
+  this->bf_sets_->imageProcessing.restoreDefault();
+
   SetConfig(this->params_,true);
 }
 
@@ -628,11 +623,16 @@ void CMvbluefox3::SetGamma(bool &enbl)
 {
   if (!this->lut_ctrl_->LUTEnable.isValid())
     throw CmvBlueFOX3Exception(_HERE_, "LUT option is not available for this model.");  
-  try{     
-    WriteProperty(this->lut_ctrl_->LUTEnable,enbl);   
+  try{   
+    if (enbl)
+    {
+      WriteProperty(this->lut_ctrl_->LUTEnable,bTrue);   
+    }
+    else
+      WriteProperty(this->lut_ctrl_->LUTEnable,bFalse);   
   }catch (CmvBlueFOX3Exception& e) {
     throw CmvBlueFOX3Exception(_HERE_, "Unable to set gamma: " + e.what() );  
-  }       
+  }  
 }
 
 void CMvbluefox3::SetBlackLevel(bool &auto_blck_level, int &blck_level)
-- 
GitLab