6 Imports System.Collections.Generic
7 Imports System.ComponentModel
9 Imports System.Globalization
10 Imports System.Reflection
11 Imports System.Runtime.Serialization
12 Imports System.Security.Permissions
14 Imports System.Windows.Forms
18 <System.SerializableAttribute(), _
19 System.ComponentModel.TypeConverterAttribute(GetType(System.ComponentModel.ExpandableObjectConverter))> _
20 Partial Public Class ParserNodeUser
21 Inherits FVIL.Parser.ParserNodeUnit
23 Public Overrides Sub Execute(ByVal sender As Object, ByVal e As System.EventArgs)
24 Dim target1_out0 As FVIL.Data.CFviImage = New FVIL.Data.CFviImage(256, 240, FVIL.ImageType.UC8, 1)
25 Dim target2_out0 As FVIL.Edge.CFviEdgeResult = New FVIL.Edge.CFviEdgeResult
26 Dim target3_out0 As FVIL.Edge.CFviEdgeResult = New FVIL.Edge.CFviEdgeResult
27 Dim target4_out0 As FVIL.Edge.CFviEdgeResult = New FVIL.Edge.CFviEdgeResult
28 Dim target5_out0 As FVIL.Data.CFviLine = _
29 New FVIL.Data.CFviLine(1, 0.2532541721230761, -84.620416859384008)
30 Dim target6_out0 As FVIL.Data.CFviLine = _
31 New FVIL.Data.CFviLine(1, 0.24762089172587431, -249.30331288145166)
32 Dim target7_out0 As FVIL.Data.CFviCircle = _
33 New FVIL.Data.CFviCircle(137.67168616358185, 115.42045679202695, 21.639257493825262)
34 Dim target8_out0 As FVIL.Data.CFviCircle = _
35 New FVIL.Data.CFviCircle(137.67168616358185, 115.42045679202695, 21.639257493825262)
36 Dim target8_out1 As FVIL.Data.CFviPoint = _
37 New FVIL.Data.CFviPoint(137.67168616358185, 115.42045679202695)
38 Dim target8_out2 As Double = 21.639257493825262
39 Dim target8_out3 As Double = 137.67168616358185
40 Dim target8_out4 As Double = 115.42045679202695
41 Dim target9_out0 As Double = 79.763799312042011
42 Dim target10_out0 As Double = 80.616337793131365
45 target1_out0 = CType(ParserInfo,FVIL.Parser.IDataObject(Of FVIL.Data.CFviImage)).Infos(0).Data
48 Dim target2 As FVIL.Edge.CFviBoxEdge = New FVIL.Edge.CFviBoxEdge
49 target2.SrcImages(0) = target1_out0
50 target2.Result = target2_out0
51 target2.MaxThreshold = 75
55 target2.EdgeDirection = FVIL.Edge.Direction.BrightToDark
57 target2.Threshold = -1
58 target2.ScanDirection = FVIL.ScanDirection.Right
60 target2.Box = New FVIL.Data.CFviRectangle( _
61 60, 37.288247321445432, 90.92518839821922, 148.83211150513876, _
62 14.403819866037779, 0, 8.7117526785545678)
66 Dim target3 As FVIL.Edge.CFviBoxEdge = New FVIL.Edge.CFviBoxEdge
67 target3.SrcImages(0) = target1_out0
68 target3.Result = target3_out0
69 target3.MaxThreshold = 75
73 target3.EdgeDirection = FVIL.Edge.Direction.BrightToDark
75 target3.Threshold = -1
76 target3.ScanDirection = FVIL.ScanDirection.Left
78 target3.Box = New FVIL.Data.CFviRectangle( _
79 212, 76.920616462741449, 243.12403515431902, 191.80449871795281, _
80 15.390940092953223, 0, 11.079383537258551)
84 Dim target4 As FVIL.Edge.CFviRadialEdge = New FVIL.Edge.CFviRadialEdge
85 target4.SrcImages(0) = target1_out0
86 target4.Result = target4_out0
87 target4.Threshold = 25
88 target4.ScanDirection = FVIL.Edge.ScanDirection.Inward
90 target4.Radial = New FVIL.Data.CFviCircle(138, 116, 33.498769231142433)
94 target5_out0 = FVIL.CG.[Function].FitLine( _
95 New FVIL.DPNT_T_ARRAY(New FVIL.DPNT_T_ARRAY(target2_out0)), FVIL.CG.FitMode.MESTIMATOR, 3.291)
98 target6_out0 = FVIL.CG.[Function].FitLine( _
99 New FVIL.DPNT_T_ARRAY(New FVIL.DPNT_T_ARRAY(target3_out0)), FVIL.CG.FitMode.MESTIMATOR, 3.291)
102 target7_out0 = FVIL.CG.[Function].FitCircle( _
103 New FVIL.DPNT_T_ARRAY(New FVIL.DPNT_T_ARRAY(target4_out0)), FVIL.CG.FitMode.MESTIMATOR, 3.291)
106 target8_out0 = target7_out0
107 target8_out1 = target8_out0.Center
108 target8_out2 = target8_out0.Radius
109 target8_out3 = target8_out0.X
110 target8_out4 = target8_out0.Y
113 target9_out0 = FVIL.Caliper.[Function].Distance(target8_out1, target5_out0)
116 target10_out0 = FVIL.Caliper.[Function].Distance(target8_out1, target6_out0)