IDS Peak comfortSDK, genericSDK, IPL, and AFL developer manuals are external documents. Please contact us if you need them.
Defines which multiplier (red, green, blue) to use for the given pixel color.
Name |
ColorCorrectionMatrixValueSelector[ColorCorrectionMatrix] |
Category |
|
Interface |
Enumeration |
Access |
Read/Write |
Unit |
- |
Visibility |
Expert |
Values |
Gain00 Gain01 Gain02 Gain10 Gain11 Gain12 Gain20 Gain21 Gain22 |
Standard |
IDS |
Availability uEye+ |
|
Availability uEye |
|
Values description
•Gain00: Red multiplier for red pixels.
•Gain01: Green multiplier for red pixels.
•Gain02: Blue multiplier for red pixels.
•Gain10: Red multiplier for green pixels.
•Gain11: Green multiplier for green pixels.
•Gain12: Blue multiplier for green pixels.
•Gain20: Red multiplier for blue pixels.
•Gain21: Green multiplier for blue pixels.
•Gain22: Blue multiplier for blue pixels.
Code example
C++
// Before accessing ColorCorrectionMatrixValueSelector, make sure ColorCorrectionMatrix is set correctly
// Set ColorCorrectionMatrix to "HQ"
nodeMapRemoteDevice->FindNode<peak::core::nodes::EnumerationNode>("ColorCorrectionMatrix")->SetCurrentEntry("HQ");
// Determine the current entry of ColorCorrectionMatrixValueSelector
std::string value = nodeMapRemoteDevice->FindNode<peak::core::nodes::EnumerationNode>("ColorCorrectionMatrixValueSelector")->CurrentEntry()->SymbolicValue();
// Get a list of all available entries of ColorCorrectionMatrixValueSelector
auto allEntries = nodeMapRemoteDevice->FindNode<peak::core::nodes::EnumerationNode>("ColorCorrectionMatrixValueSelector")->Entries();
std::vector<std::shared_ptr<peak::core::nodes::EnumerationEntryNode>> availableEntries;
for(const auto & entry : allEntries)
{
if ((entry->AccessStatus()!=peak::core::nodes::NodeAccessStatus::NotAvailable)
&& (entry->AccessStatus()!=peak::core::nodes::NodeAccessStatus::NotImplemented))
{
availableEntries.emplace_back(entry);
}
}
// Set ColorCorrectionMatrixValueSelector to "Gain00"
nodeMapRemoteDevice->FindNode<peak::core::nodes::EnumerationNode>("ColorCorrectionMatrixValueSelector")->SetCurrentEntry("Gain00");
C#
// Before accessing ColorCorrectionMatrixValueSelector, make sure ColorCorrectionMatrix is set correctly
// Set ColorCorrectionMatrix to "HQ"
nodeMapRemoteDevice.FindNode<peak.core.nodes.EnumerationNode>("ColorCorrectionMatrix").SetCurrentEntry("HQ");
// Determine the current entry of ColorCorrectionMatrixValueSelector
string value = nodeMapRemoteDevice.FindNode<peak.core.nodes.EnumerationNode>("ColorCorrectionMatrixValueSelector").CurrentEntry().SymbolicValue();
// Get a list of all available entries of ColorCorrectionMatrixValueSelector
allEntries = nodeMapRemoteDevice.FindNode<peak.core.nodes.EnumerationNode>("ColorCorrectionMatrixValueSelector").Entries();
List<string> availableEntries = new List<string>();
for(int i = 0; i < allEntries.Count(); ++i)
{
if ((allEntries[i].AccessStatus() != peak.core.nodes.NodeAccessStatus.NotAvailable)
&& (allEntries[i].AccessStatus() != peak.core.nodes.NodeAccessStatus.NotImplemented))
{
availableEntries.Add(allEntries[i].SymbolicValue());
}
}
// Set ColorCorrectionMatrixValueSelector to "Gain00"
nodeMapRemoteDevice.FindNode<peak.core.nodes.EnumerationNode>("ColorCorrectionMatrixValueSelector").SetCurrentEntry("Gain00");
Python
# Before accessing ColorCorrectionMatrixValueSelector, make sure ColorCorrectionMatrix is set correctly
# Set ColorCorrectionMatrix to "HQ" (str)
nodeMapRemoteDevice.FindNode("ColorCorrectionMatrix").SetCurrentEntry("HQ")
# Determine the current entry of ColorCorrectionMatrixValueSelector (str)
value = nodeMapRemoteDevice.FindNode("ColorCorrectionMatrixValueSelector").CurrentEntry().SymbolicValue()
# Get a list of all available entries of ColorCorrectionMatrixValueSelector
allEntries = nodeMapRemoteDevice.FindNode("ColorCorrectionMatrixValueSelector").Entries()
availableEntries = []
for entry in allEntries:
if (entry.AccessStatus() != ids_peak.NodeAccessStatus_NotAvailable
and entry.AccessStatus() != ids_peak.NodeAccessStatus_NotImplemented):
availableEntries.append(entry.SymbolicValue())
# Set ColorCorrectionMatrixValueSelector to "Gain00" (str)
nodeMapRemoteDevice.FindNode("ColorCorrectionMatrixValueSelector").SetCurrentEntry("Gain00")