Skip to content
Snippets Groups Projects
Commit 7695eddc authored by Angel Santamaria-Navarro's avatar Angel Santamaria-Navarro
Browse files

added some propierties. minor changes

parent 712490a4
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment