Please enable JavaScript to view this site.

IDS peak 26.06. / uEye+ firmware 3.94

Type of color filter that is applied to the image.

Name

PixelColorFilter[ComponentSelector]

Category

ImageFormatControl

Interface

Enumeration

Access

Read

Unit

-

Visibility

Expert

Values

None

BayerRG

BayerGB

BayerGR

BayerBG

Standard

SFNC

Availability uEye+

icon-gev icon-u3v

Availability uEye

icon-ui-gige icon-ui-usb2 icon-ui-usb3

Values description

•None: No color filter.

•BayerRG: Bayer filter where red is the first color and green is the second color of the first row.

•BayerGB: Bayer filter where green is the first color and blue is the second color of the first row.

•BayerGR: Bayer filter where green is the first color and red is the second color of the first row.

•BayerBG: Bayer filter where blue is the first color and green is the second color of the first row.

Code example

C++

// Determine the current entry of PixelColorFilter
std::string value = nodeMapRemoteDevice->FindNode<peak::core::nodes::EnumerationNode>("PixelColorFilter")->CurrentEntry()->SymbolicValue();
// Get a list of all available entries of PixelColorFilter
auto allEntries = nodeMapRemoteDevice->FindNode<peak::core::nodes::EnumerationNode>("PixelColorFilter")->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);
  }
}

C#

// Determine the current entry of PixelColorFilter
string value = nodeMapRemoteDevice.FindNode<IDSImaging.Peak.API.Core.Nodes.EnumerationNode>("PixelColorFilter").CurrentEntry().SymbolicValue();
// Get a list of all available entries of PixelColorFilter
allEntries = nodeMapRemoteDevice.FindNode<IDSImaging.Peak.API.Core.Nodes.EnumerationNode>("PixelColorFilter").Entries();
List<string> availableEntries = new List<string>();
for(int i = 0; i < allEntries.Count(); ++i)
{
  if ((allEntries[i].AccessStatus() != IDSImaging.Peak.API.Core.Nodes.NodeAccessStatus.NotAvailable)
          && (allEntries[i].AccessStatus() != IDSImaging.Peak.API.Core.Nodes.NodeAccessStatus.NotImplemented))
  {
      availableEntries.Add(allEntries[i].SymbolicValue());
  }
}

Python

# Determine the current entry of PixelColorFilter (str)
value = nodeMapRemoteDevice.FindNode("PixelColorFilter").CurrentEntry().SymbolicValue()
# Get a list of all available entries of PixelColorFilter
allEntries = nodeMapRemoteDevice.FindNode("PixelColorFilter").Entries()
availableEntries = []
for entry in allEntries:
  if (entry.AccessStatus() != ids_peak.NodeAccessStatus_NotAvailable
          and entry.AccessStatus() != ids_peak.NodeAccessStatus_NotImplemented):
      availableEntries.append(entry.SymbolicValue())