165
ifm Vision Assistant O3M
UK
Addition of two vectors of different size
If vectors of different size are present at the inputs, the respective values of the vectors are added .
Missing values of the smaller vector are replaced by the last value used . A vector is then sent to the
output . The size of the vector at the output corresponds to size of the largest vector at the input .
Description of the modules used in the example:
Module number
Module
Description
1
Basic function
The x-values are filtered out of ROI groups 1-4 . The ROI groups contain the
following x-values:
1
3 .25 m
2
3 .32 m
3
3 .19 m
4
3 .37 m
2
Basic function
The x-values are filtered out of ROI groups 5-7 . The ROI groups contain the
following values:
5
5 .07 m
6
4 .98 m
7
5 .12 m
3
ADD
The respective x-values of the vectors are added .
4
Analogue output
The following vector is provided at analogue output 1:
1
(ROI 1 (3 .25 m)) + (ROI 5 (5 .07 m)) = 8 .32 m
2
(ROI 2 (3 .32 m)) + (ROI 6 (4 .98 m)) = 8 .30 m
3
(ROI 3 (3 .19 m)) + (ROI 7 (5 .12 m)) = 8 .31 m
4
(ROI 4 (3 .37 m)) + (ROI 8 (5 .12 m)) = 8 .49 m