4 using System.Collections.Generic;
7 using System.Reflection;
8 using System.ComponentModel;
9 using System.Windows.Forms;
10 using System.Runtime.Serialization;
11 using System.Security.Permissions;
12 using System.Globalization;
15 [System.SerializableAttribute()]
16 [System.ComponentModel.TypeConverterAttribute(typeof(System.ComponentModel.ExpandableObjectConverter))]
17 public partial class ParserNodeUser : FVIL.Parser.ParserNodeUnit
19 public override void Execute(
object sender, System.EventArgs e)
21 FVIL.Data.CFviImage target1_out0 =
new FVIL.Data.CFviImage(320, 240, FVIL.ImageType.UC8, 1);
22 FVIL.Data.CFviImage target2_out0 =
new FVIL.Data.CFviImage(320, 240, FVIL.ImageType.BIN, 1);
23 FVIL.Blob.CFviBlobList target3_out0 =
new FVIL.Blob.CFviBlobList();
24 FVIL.Blob.CFviBlobData target4_out0 =
new FVIL.Blob.CFviBlobData();
25 FVIL.Data.CFviPoint target4_out1 =
new FVIL.Data.CFviPoint(59.94997843898232, 72.105648986632175);
26 int target4_out2 = 82;
27 int target4_out3 = 94;
28 FVIL.Blob.CFviBlobData target5_out0 =
new FVIL.Blob.CFviBlobData();
29 FVIL.Data.CFviPoint target5_out1 =
new FVIL.Data.CFviPoint(202.01071237279058, 181.78628816282807);
30 int target5_out2 = 114;
31 int target5_out3 = 55;
32 double target6_out0 = 179.47449605977764;
35 target1_out0 = ((FVIL.Parser.IDataObject<FVIL.Data.CFviImage>)(ParserInfo)).Infos[0].Data;
38 FVIL.Conversion.CFviBinarizeDiscrimination target2 =
new FVIL.Conversion.CFviBinarizeDiscrimination();
39 target2.SrcImages[0] = target1_out0;
40 target2.DstImages[0] = target2_out0;
44 FVIL.Blob.CFviBlob target3 =
new FVIL.Blob.CFviBlob();
45 target3.SrcImages[0] = target2_out0;
46 target3.ContinueOption = FVIL.Blob.ContinueOption.None;
47 target3.OriginMode = FVIL.OriginMode.Image;
48 target3.Offset =
new System.Drawing.Point(0, 0);
49 target3.Param.KeepResultsAfterOverflow =
false;
50 target3.Param.PrecalcFeatures = FVIL.Blob.FeatureFlag.None;
51 target3.Param.Neighborhood = FVIL.Blob.Neighborhood.Four;
52 target3.Param.ColorMode = FVIL.Blob.ObjectColor.WhiteFG_BlackBG;
53 target3.Param.MaxRows = 0;
54 target3.Param.MaxBlobs = 0u;
55 target3.Param.MaxRuns = 0u;
57 System.Collections.Generic.List<FVIL.Blob.CFviBlobFilterRange> target3_filters =
58 new System.Collections.Generic.List<FVIL.Blob.CFviBlobFilterRange>();
59 target3_filters.Add(
new FVIL.Blob.CFviBlobFilterRange(FVIL.Blob.FeatureType.RECT1AREA, 1000, 4294967295));
60 target3_out0 = target3.Result.GetBlobList(target3_filters);
63 target4_out0.CopyFrom(target3_out0[1]);
64 target4_out1 = target4_out0.Center;
65 target4_out2 = target4_out0.Xdiff;
66 target4_out3 = target4_out0.Ydiff;
69 target5_out0.CopyFrom(target3_out0[4]);
70 target5_out1 = target5_out0.Center;
71 target5_out2 = target5_out0.Xdiff;
72 target5_out3 = target5_out0.Ydiff;
75 FVIL.Data.CFviPoint target6_points =
new FVIL.Data.CFviPoint[2];
76 target6_points.Add(target5_out1);
77 target6_points.Add(target4_out1);
78 target6_out0 = FVIL.Caliper.Function.Distance(target6_points);