预处理配置(非循环写入)

<< 点击显示目录 >>

主页  mappVision帮助助手 > 机器视觉帮助 > mapp Vision  > 编程 > 视觉功能 > 图像采集 >

预处理配置(非循环写入)

信息:

本节中指定的参数是硬件模块配置的一部分,可通过 Automation Studio 访问。

 

信息:

决定 POWERLINK 帧长度的单个配置参数只能在 Automation Studio 配置过程中更改(即循环更改)。因此,这些参数只能在运行时读取,并标识为常量。

参数

类型

数值范围

说明

循环

非循环

Filter

USINT

0 to 255

选择预处理滤波器

 

W

User filter Filter(n) 11- 33

SINT

-128 to 127

用户自定义滤波器的 3x3 滤波器矩阵的滤波器系数值。+

每个用户滤波器应用 9 次。

 

W

User filter "Filter(n)" offset

SINT

-128 to 127

3x3 滤波计算出的像素值的偏移值。

为每个用户滤波器应用。

 

W

User filter Filter(n) gain

UINT

0 to 65535

3x3 滤波计算像素值的乘数。

应用于每个用户滤波器。

 

W

Filter

选择是否在摄像机上使用预处理滤镜。

有关最常用线性滤镜的说明和设计,请参阅预处理(线性滤镜)。

数据类型

信息

USINT

0

禁用

1

索贝尔滤波器

2

用户滤波器 "滤波器 1

3

用户滤波器 "滤波器 1 "和 "滤波器 2

信息:

如果使用 2 个用户滤波器,则首先使用滤波器 1 进行完整的预处理(依次设置用户滤波器 Filter(n) 11-33、用户滤波器 "Filter(n) "偏移和用户滤波器 Filter(n) 增益),然后使用滤波器 2 的设置对生成的(中间)图像进行预处理。

User filter Filter(n) 11- 33

参数适用于 3x3 滤波矩阵中的一个系数,矩阵索引的计数方向定义如下:

I11

I12

I13

I21

I22

I23

I31

I32

I33

这九个参数共同构成了用户自定义滤波器的滤波核心。

数据类型

信息

SINT

-128 to 127

滤波系数值

信息:

该参数要么不出现,要么出现一次或两次(指数为 1 或 2),具体取决于参数 Filter 的设置值。

User filter "Filter(n)" offset

通过 3x3 滤波计算出的像素灰度值的偏移值。

数据类型

信息

SINT

-128 to 127

默认值:0

信息:

该参数要么不出现,要么出现一次或两次(指数为 1 或 2),具体取决于参数 Filter 的设置值。

User filter Filter(n) gain

3x3 滤波计算出的像素值的乘数。

通常使用滤波系数绝对值之和的倒数(例如,对于系数全部为 1 的平滑滤波器,使用 1/9)。

数据类型

信息

UINT

0 to 65535

默认值: 32768. 以 1/32768 为增量。因此也可以使用 2 倍增益系数。

信息:

该参数要么不出现,要么出现一次或两次(指数为 1 或 2),具体取决于参数 Filter 的设置值。


Information:

The parameters specified in this section are part of the hardware module configuration that can be accessed via Automation Studio.

 

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.

Parameters

Type

Range of values

Description

Cyclic

Acyclic

Filter

USINT

0 to 255

Selects the preprocessing filter

 

W

User filter Filter(n) 11- 33

SINT

-128 to 127

Value of a filter coefficient of the 3x3 filter matrix of a user-defined filter.

Applied 9 times for each user filter.

 

W

User filter "Filter(n)" offset

SINT

-128 to 127

Offset value for the calculated pixel values from the 3x3 filtering.

Applied for each user filter.

 

W

User filter Filter(n) gain

UINT

0 to 65535

Multiplier for the calculated pixel values from the 3x3 filtering.

Applied for each user filter.

 

W

Filter

Selects whether to use preprocessing filters on the camera.

For illustration and design of the most common linear filters, see Preprocessing (linear filters).

Data type

Values

Information

USINT

0

Disabled

1

Sobel filter

2

User filter "filter 1"

3

User filters "filter 1" and "filter 2"

Information:

If 2 user filters are used, first the complete preprocessing is carried out with filter 1 (sequentially with the settings of User filter Filter(n) 11- 33, User filter "Filter(n)" offset and User filter Filter(n) gain), and then the resulting (intermediate) image is preprocessed with the settings of filter 2.

User filter Filter(n) 11- 33

The parameter applies in each case to one coefficient of a 3x3 filter matrix, where the counting direction of the matrix indices is defined as follows:

I11

I12

I13

I21

I22

I23

I31

I32

I33

All nine parameters together form the filter core of a user-defined filter.

Data type

Values

Information

SINT

-128 to 127

Value of the filter coefficient

Information:

This parameter either does not occur or occurs once or twice (with indices 1 or 2) depending on the set value of parameter Filter.

User filter "Filter(n)" offset

Offset value for the calculated grayscale values of the pixels from the 3x3 filtering.

Data type

Values

Information

SINT

-128 to 127

Default value: 0

Information:

This parameter either does not occur or occurs once or twice (with indices 1 or 2) depending on the set value of parameter Filter.

User filter Filter(n) gain

Multiplier for the calculated pixel values from the 3x3 filtering.

The reciprocal of the sum of the absolute values of the filter coefficients is usually used for this (e.g. 1/9 for a smoothing filter with all 1 coefficients).

Data type

Values

Information

UINT

0 to 65535

Default value: 32768. In 1/32768 increments. A 2-fold gain factor is therefore also possible.

Information:

This parameter either does not occur or occurs once or twice (with indices 1 or 2) depending on the set value of parameter Filter.