<< 点击显示目录 >> 主页 mappVision帮助助手 > 机器视觉帮助 > mapp Vision > 编程 > 视觉功能 > 像素计数器 > 像素计数器配置(非循环读/写) |
本节介绍 MVTec 的 HALCON 22.11 机器视觉软件库中包含的参数。
信息:
这些参数可直接在 mapp Vision HMI 应用程序中更改(参见配置视觉功能)。
信息:
决定 POWERLINK 帧长度的单个配置参数只能在 AS 软件的配置过程中更改(即循环更改)。因此,这些参数只能在运行时读取,并标识为常量。
UCHAR |
1 至 255 |
要搜索的最大结果数 |
|
R/W1 |
|
配置参数 |
|||||
UCHAR |
0 |
'':对于未指定类型的查询 0: "像素计数器模型 |
|
R |
|
|
-1至255 |
-1:用于查询所有模型 0: 用于查询模型的默认值/创建新模型 1 至 255:已创建模型的编号。这些值由用户界面处理,也就是说,用户只能看到已经教入的值。 |
|
R |
|
UCHAR |
0 至 255 |
最小灰度值级别的限制 |
|
R/W2 |
|
UCHAR |
0 至 255 |
最大灰度值级别的限制 |
|
R/W2 |
|
BOOL |
0 或 1 |
反转搜索间隔 |
|
R |
1 |
配置参数在运行时保持不变,在这种情况下只能 "读取"。 |
---|---|
2 |
配置参数可通过示教程序修改。 |
运行时不可修改的变量。仅在 AS 软件上下文中需要使用。保留内存块的最大数量。要搜索的 Blob 的最大数量。
值 |
信息 |
|
---|---|---|
USINT |
0 |
像素计数器 可根据定义的 "模型 ROI "和灰度值限制(间隔可反转)搜索合适的像素。首次添加新模型时,阈值最小值(ThresholdMin)和阈值最大值(ThresholdMax)会从 "模型 ROI "及其定义的图像区域自动导出。这些值的设置会使 "模型 ROI "中的所有像素都被选中。 |
反转搜索区间 [ThresholdMin,ThresholdMax]。这样就可以排除特定的灰度值区间。
例如
InvertSelection = 1 时的 [20, 100] 返回 ROI 中灰度值在 0 到 19 和 101 到 255 之间的所有像素。
This section describes the included parameters from the HALCON 22.11 machine vision software library from MVTec.
Information:
These parameters can be changed directly in the mapp Vision HMI application (see Configuring vision functions).
Information:
Individual configuration parameters that determine the length of a POWERLINK frame can only be changed during configuration in Automation Studio (i.e. acyclically). These parameters can therefore only be read at runtime and are identified as constants.
UCHAR |
1 to 255 |
Maximum number of results to be searched for |
|
R/W1 |
|
Configuration parameters |
|||||
UCHAR |
0 |
'': For a query without type specification 0: "Pixel counter model" |
|
R |
|
|
-1 to 255 |
-1: For querying all models 0: For querying default values of models / creating new models 1 to 255: Numbers for created models. These values are handled by the UI, i.e. the user can only see those that have already been taught-in. |
|
R |
|
UCHAR |
0 to 255 |
Limit for minimum grayscale value level |
|
R/W2 |
|
UCHAR |
0 to 255 |
Limit for maximum grayscale value level |
|
R/W2 |
|
BOOL |
0 or 1 |
Inversion of the search interval |
|
R |
1 |
The configuration parameter is constant at runtime and in this case only "Read". |
---|---|
2 |
The configuration parameter can be modified by the teach-in process. |
Variable that cannot be modified at runtime. Only necessary in the Automation Studio context. Reserves the maximum number of memory blocks. Maximum number of blobs to be searched for.
Values |
Information |
|
---|---|---|
USINT |
0 |
Pixel counter Suitable pixels can be searched based on the defined "Model ROI" and grayscale value limits (interval invertible). When adding a new model for the first time, the values for ThresholdMin and ThresholdMax are automatically derived from the "Model ROI" and the image area defined by it. These are set so that all pixels in the "Model ROI" are selected. |
This number is controlled by the UI. The user only sees the model number of the already taught-in models.
Lower limit of the grayscale value range of the pixel being searched for.
Upper limit of the grayscale value range of the pixel being searched for.
Inverts the search interval [ThresholdMin, ThresholdMax]. This makes it possible to exclude a specific grayscale value interval.
Example:
[20, 100] with InvertSelection = 1 returns all pixels in the ROI that have a grayscale value from 0 to 19 and 101 to 255.