Controls the analog black level for the selected bit depth. The BlackLevel is an offset that applies to all pixel values. Changing the PixelFormat to a different bit depth, the value and range of BlackLevel will be adapted to the new format automatically.
uEye+ cameras: BlackLevel is only available for some cameras. |
Name |
BlackLevel[BlackLevelSelector] |
Category |
|
Interface |
Float |
Access |
Read/Write |
Unit |
|
Visibility |
Expert |
Values |
≥ 0 |
Standard |
SFNC |
Availability uEye+ |
|
Availability uEye |
|
Code example
C++
// Before accessing BlackLevel, make sure PixelFormat is set correctly
// Set PixelFormat to "Mono8"
nodeMapRemoteDevice->FindNode<peak::core::nodes::EnumerationNode>("PixelFormat")->SetCurrentEntry("Mono8");
// Determine the current BlackLevel
double value = nodeMapRemoteDevice->FindNode<peak::core::nodes::FloatNode>("BlackLevel")->Value();
// Set BlackLevel to 1.0
nodeMapRemoteDevice->FindNode<peak::core::nodes::FloatNode>("BlackLevel")->SetValue(1.0);
C#
// Before accessing BlackLevel, make sure PixelFormat is set correctly
// Set PixelFormat to "Mono8"
nodeMapRemoteDevice.FindNode<peak.core.nodes.EnumerationNode>("PixelFormat").SetCurrentEntry("Mono8");
// Determine the current BlackLevel
double value = nodeMapRemoteDevice.FindNode<peak.core.nodes.FloatNode>("BlackLevel").Value();
// Set BlackLevel to 1.0
nodeMapRemoteDevice.FindNode<peak.core.nodes.FloatNode>("BlackLevel").SetValue(1.0);
Python
# Before accessing BlackLevel, make sure PixelFormat is set correctly
# Set PixelFormat to "Mono8" (str)
nodeMapRemoteDevice.FindNode("PixelFormat").SetCurrentEntry("Mono8")
# Determine the current BlackLevel (float)
value = nodeMapRemoteDevice.FindNode("BlackLevel").Value()
# Set BlackLevel to 1.0 (float)
nodeMapRemoteDevice.FindNode("BlackLevel").SetValue(1.0)