领胜LDS 键盘AOI检测项目
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?xml version="1.0" encoding="UTF-8"?>
<hdevelop file_version="1.1" halcon_version="12.0">
<procedure name="M071_Max_Min2">
<interface>
<ic>
<par name="INPUT_Params" base_type="ctrl" dimension="0"/>
</ic>
<oc>
<par name="OUTPUT_Result" base_type="ctrl" dimension="0"/>
</oc>
</interface>
<body>
<l>tempTuple := []</l>
<l>for Index := 0 to |INPUT_Params| - 1 by 2</l>
<l>    tempTuple[Index] := abs(INPUT_Params[Index] - INPUT_Params[Index + 1])</l>
<l>endfor</l>
<l>tuple_max (tempTuple, Max)</l>
<l>tuple_min (tempTuple, Min)</l>
<l>OUTPUT_Result := Max - Min</l>
<l>return ()</l>
</body>
<docu id="M071_Max_Min2">
<parameters>
<parameter id="INPUT_Params"/>
<parameter id="OUTPUT_Result"/>
</parameters>
</docu>
</procedure>
</hdevelop>