IDS Peak comfortSDK, genericSDK, IPL, and AFL developer manuals are external documents. Please contact us if you need them.
Controls the gamma correction of pixel intensity.
Name |
Gamma |
Category |
|
Interface |
Float |
Access |
Read/Write |
Unit |
- |
Visibility |
Beginner |
Values |
•0.3 ... 3 |
Standard |
SFNC |
Availability uEye+ |
|
Availability uEye |
- |
Values description
•Gamma > 1 increases image brightness.
•Gamma < 1 decreases image brightness.
Code example
C++
// For using Gamma set LUTEnable to false
// Set LUTEnable to false
nodeMapRemoteDevice->FindNode<peak::core::nodes::BooleanNode>("LUTEnable")->SetValue(false);
// Determine the current Gamma
double value = nodeMapRemoteDevice->FindNode<peak::core::nodes::FloatNode>("Gamma")->Value();
// Set Gamma to 1.0
nodeMapRemoteDevice->FindNode<peak::core::nodes::FloatNode>("Gamma")->SetValue(1.0);
C#
// For using Gamma set LUTEnable to false
// Set LUTEnable to false
nodeMapRemoteDevice.FindNode<peak.core.nodes.BooleanNode>("LUTEnable").SetValue(false);
// Determine the current Gamma
double value = nodeMapRemoteDevice.FindNode<peak.core.nodes.FloatNode>("Gamma").Value();
// Set Gamma to 1.0
nodeMapRemoteDevice.FindNode<peak.core.nodes.FloatNode>("Gamma").SetValue(1.0);
Python
# For using Gamma set LUTEnable to false
# Set LUTEnable to false (bool)
nodeMapRemoteDevice.FindNode("LUTEnable").SetValue(False)
# Determine the current Gamma (float)
value = nodeMapRemoteDevice.FindNode("Gamma").Value()
# Set Gamma to 1.0 (float)
nodeMapRemoteDevice.FindNode("Gamma").SetValue(1.0)