Please enable JavaScript to view this site.

IDS peak 26.06. / uEye+ firmware 3.94

Sets the model used for lens distortion correction.

Name

LensDistortionCoefficientSelector

Category

LensDistortion

Interface

Enumeration

Access

Read/Write

Unit

-

Visibility

Expert

Values

BrownConrady

InverseBrownConrady

Standard

IDS

Availability uEye+

icon-gev

Availability uEye

-

Values description

BrownConrady: The Brown-Conrady model is used for lens distortion correction. The Brown-Conrady model considers both radial and tangential distortion.

InverseBrownConrady: The inverse Brown-Conrady model is used for lens distortion correction.

Code example

C++

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

C#

// Determine the current entry of LensDistortionCoefficientSelector
string value = nodeMapRemoteDevice.FindNode<IDSImaging.Peak.API.Core.Nodes.EnumerationNode>("LensDistortionCoefficientSelector").CurrentEntry().SymbolicValue();
// Get a list of all available entries of LensDistortionCoefficientSelector
allEntries = nodeMapRemoteDevice.FindNode<IDSImaging.Peak.API.Core.Nodes.EnumerationNode>("LensDistortionCoefficientSelector").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());
  }
}
// Set LensDistortionCoefficientSelector to "BrownConrady"
nodeMapRemoteDevice.FindNode<IDSImaging.Peak.API.Core.Nodes.EnumerationNode>("LensDistortionCoefficientSelector").SetCurrentEntry("BrownConrady");

Python

# Determine the current entry of LensDistortionCoefficientSelector (str)
value = nodeMapRemoteDevice.FindNode("LensDistortionCoefficientSelector").CurrentEntry().SymbolicValue()
# Get a list of all available entries of LensDistortionCoefficientSelector
allEntries = nodeMapRemoteDevice.FindNode("LensDistortionCoefficientSelector").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 LensDistortionCoefficientSelector to "BrownConrady" (str)
nodeMapRemoteDevice.FindNode("LensDistortionCoefficientSelector").SetCurrentEntry("BrownConrady")