-
产品中心
计算机视觉硬件工业相机 镜头 机器视觉光源 采集卡 线材 配件 网络和外围设备计算机视觉软件pylon Camera Software Suite VisualApplets 其他软件产品线嵌入式视觉产品线 医疗和生命科学产品线 CoaXPress产品线面阵相机Basler ace 2 Basler ace Basler MED ace Basler boost Basler beat Basler dart Basler pulse Basler scout线阵相机Basler racerBasler racerBasler racer - the right choice镜头固定焦距镜头机器视觉光源Basler相机光源系列
- 选型工具
- 解决方案
- 下载中心
- 品牌中心
- 销售与支持
-
Vision Campus
相机技术Sony IMX CMOS芯片系列型号比较 为什么要对相机进行色彩校准? 专家教您如何为视觉系统找到合适的镜头 适用于嵌入式视觉系统的五大专家级技巧 什么是多光谱成像? CMOS相机比较 图像处理过程中的色彩 处理板 什么是图像处理 图像处理中的3D技术 什么是嵌入式视觉? 为何选择CMOS图像芯片? 什么是ToF (Time-of-Flight)? 什么是成像质量? 相机尺寸 数字相机的工作原理是什么? 芯片技术:CMOS与CCD的对比 实时性 NIR: 即使在弱光条件也可以呈现清晰图像 高灵敏度图像处理相机显示更多收起接口和标准System Setup with CoaXPress 2.0 什么是CoaXPress? 哪一款接口适合嵌入式视觉? 配备GigE 2.0的多相机系统 USB 3.0 – 引领未来的标准化接口 接口是什么? Camera Link 千兆网(GigE) GenICam标准 USB 3.0和USB3 Vision
- 公司概况
How can I feed generic-style parameter access into native-style parameter access?
In some cases a camera feature might be very new and not yet included into the interface-specific headers used for native-style programming in pylon. This can be the case for custom cameras for example.
In these cases it is always possible to use the feature using generic-style parameter access. You need to know the name and the type of the parameters you want to access. Generic-style parameter access is documented in the programmer's guide and in the ParametrizeCamera_GenericParameterAccess C++ sample, but here are some quick examples:
// your native style code
// A new enum entry Line3FallingEdge has been added to
// an enumeration type parameter, you can use the FromString
// method in such case
camera.EventSelector.FromString("Line3FallingEdge");
camera.EventNotification.SetValue(EventNotification_GenICamEvent);
// A new enumeration type has been added to the camera
GenApi::CEnumerationPtr (camera.GetNodeMap().GetNode("NewEnumFeatureName"))->FromString("NewEnumItemName");
// A new integer type has been added to the
// camera, for other types you can use CBooleanPtr,
// CStringPtr, CFloatPtr etc.
GenApi::CIntegerPtr (camera.GetNodeMap().GetNode("NewIntegerFeatureName"))->SetValue(23);
// your native style code
// if you access a parameter often, you can create an
// instance of one of the GenApi Ptr classes
GenApi::INodeMap& nodeMap = camera.GetNodeMap();
GenApi::CIntegerPtr newIntegerFeature(nodeMap.GetNode("NewIntegerFeatureName"));
// use the parameter
newIntegerFeature ->SetValue(23);