删除TargetNullValue
This commit is contained in:
parent
103994520a
commit
cf00767804
@ -351,7 +351,6 @@ public partial class VisionConfigViewModel
|
||||
break;
|
||||
|
||||
case VisionFlowType.存到全局图像:
|
||||
|
||||
break;
|
||||
case VisionFlowType.存到文件:
|
||||
break;
|
||||
@ -396,7 +395,7 @@ public partial class VisionConfigViewModel
|
||||
newFlow.IntParams["NFeatures"] = 500;
|
||||
newFlow.IntParams["MinMatches"] = 8;
|
||||
newFlow.DoubleParams["MinGoodRatio"] = 0.3;
|
||||
newFlow.StringParams["TemplateName"] = "ORB_Template";
|
||||
newFlow.StringParams["TemplateName"] = "ORB模板";
|
||||
break;
|
||||
case VisionFlowType.取通道:
|
||||
newFlow.IntParams["ChannelIndex"] = 0;
|
||||
@ -405,7 +404,8 @@ public partial class VisionConfigViewModel
|
||||
newFlow.DoubleParams["CalibSpacing"] = 5;
|
||||
newFlow.DoubleParams["ImageX"] = 0;
|
||||
newFlow.DoubleParams["ImageY"] = 0;
|
||||
newFlow.StringParams["TransformMat"] = "";
|
||||
newFlow.StringParams["TransformMat"] = "标定矩阵";
|
||||
newFlow.StringParams["OutputVar"] = "转换结果";
|
||||
break;
|
||||
case VisionFlowType.图像翻转:
|
||||
newFlow.IntParams["FlipDirection"] = 0;
|
||||
@ -425,18 +425,18 @@ public partial class VisionConfigViewModel
|
||||
|
||||
break;
|
||||
case VisionFlowType.图像校正:
|
||||
newFlow.StringParams["MatrixVar"] = "SIFT匹配_矩阵";
|
||||
newFlow.StringParams["MatrixVar"] = "SIFT匹配矩阵";
|
||||
break;
|
||||
case VisionFlowType.ROI解码:
|
||||
newFlow.IntParams["DecodeType"] = 0;
|
||||
newFlow.BoolParams["EnableMirror"] = false;
|
||||
newFlow.BoolParams["EnableUpscale"] = true;
|
||||
newFlow.BoolParams["UsePureBarcode"] = false;
|
||||
newFlow.StringParams["ResultVarName"] = "条码解码_Result";
|
||||
newFlow.StringParams["ResultVarName"] = "解码结果";
|
||||
break;
|
||||
case VisionFlowType.微信解码:
|
||||
newFlow.BoolParams["EnableMirror"] = false;
|
||||
newFlow.StringParams["ResultVarName"] = "微信解码_Result";
|
||||
newFlow.StringParams["ResultVarName"] = "微信解码结果";
|
||||
break;
|
||||
case VisionFlowType.颜色面积:
|
||||
newFlow.IntParams["HMin"] = 0;
|
||||
@ -447,14 +447,14 @@ public partial class VisionConfigViewModel
|
||||
newFlow.IntParams["VMax"] = 255;
|
||||
newFlow.DoubleParams["AreaMinPercent"] = 0;
|
||||
newFlow.DoubleParams["AreaMaxPercent"] = 100;
|
||||
newFlow.StringParams["ResultVarName"] = "颜色面积_Result";
|
||||
newFlow.StringParams["ResultVarName"] = "颜色面积结果";
|
||||
break;
|
||||
case VisionFlowType.灰度面积:
|
||||
newFlow.IntParams["GrayMin"] = 0;
|
||||
newFlow.IntParams["GrayMax"] = 255;
|
||||
newFlow.DoubleParams["AreaMinPercent"] = 0;
|
||||
newFlow.DoubleParams["AreaMaxPercent"] = 100;
|
||||
newFlow.StringParams["ResultVarName"] = "灰度面积_Result";
|
||||
newFlow.StringParams["ResultVarName"] = "灰度面积结果";
|
||||
break;
|
||||
case VisionFlowType.灰度模板匹配:
|
||||
newFlow.DoubleParams["MinAngle"] = -10;
|
||||
@ -462,16 +462,16 @@ public partial class VisionConfigViewModel
|
||||
newFlow.DoubleParams["AngleStep"] = 1;
|
||||
newFlow.DoubleParams["MatchScoreMax"] = 0.9;
|
||||
newFlow.StringParams["TemplateName"] = "GrayMatch_Template";
|
||||
newFlow.StringParams["GrayTemplateMatch_PosVar"] = "灰度模板匹配_Pos";
|
||||
newFlow.StringParams["GrayTemplateMatch_PosVar"] = "灰度模板匹配结果";
|
||||
break;
|
||||
case VisionFlowType.SIFT匹配:
|
||||
newFlow.IntParams["NFeatures"] = 1000;
|
||||
newFlow.IntParams["MinMatches"] = 8;
|
||||
newFlow.DoubleParams["MinGoodRatio"] = 0.3;
|
||||
newFlow.StringParams["TemplateName"] = "SIFT_Template";
|
||||
newFlow.StringParams["SiftMatch_PosVar"] = "SIFT匹配_Pos";
|
||||
newFlow.StringParams["SiftMatch_OffsetVar"] = "SIFT匹配_Offset";
|
||||
newFlow.StringParams["SiftMatch_MatVar"] = "SIFT匹配_矩阵";
|
||||
newFlow.StringParams["TemplateName"] = "SIFT模板";
|
||||
newFlow.StringParams["SiftMatch_PosVar"] = "SIFT匹配结果";
|
||||
newFlow.StringParams["SiftMatch_OffsetVar"] = "SIFT匹配偏移";
|
||||
newFlow.StringParams["SiftMatch_MatVar"] = "SIFT匹配矩阵";
|
||||
newFlow.BoolParams["SiftMatch_OutPos"] = true;
|
||||
newFlow.BoolParams["SiftMatch_OutOffset"] = true;
|
||||
newFlow.BoolParams["SiftMatch_OutMat"] = true;
|
||||
|
||||
@ -26,19 +26,19 @@
|
||||
<ColumnDefinition />
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBlock Margin="3,0" Text="Left" VerticalAlignment="Center" />
|
||||
<TextBox Grid.Column="1" Text="{Binding SelectVisionFlow.DoubleParams[ROILeft], TargetNullValue=—, UpdateSourceTrigger=LostFocus}" />
|
||||
<TextBox Grid.Column="1" Text="{Binding SelectVisionFlow.DoubleParams[ROILeft], UpdateSourceTrigger=LostFocus}" />
|
||||
<TextBlock Grid.Row="0" Grid.Column="2"
|
||||
Margin="3,0"
|
||||
Text="Top"
|
||||
VerticalAlignment="Center" />
|
||||
<TextBox Grid.Row="0" Grid.Column="3" Text="{Binding SelectVisionFlow.DoubleParams[ROITop], TargetNullValue=—, UpdateSourceTrigger=LostFocus}" />
|
||||
<TextBox Grid.Row="0" Grid.Column="3" Text="{Binding SelectVisionFlow.DoubleParams[ROITop], UpdateSourceTrigger=LostFocus}" />
|
||||
<TextBlock Grid.Row="1" Margin="3,0" Text="Width" VerticalAlignment="Center" />
|
||||
<TextBox Grid.Row="1" Grid.Column="1" Text="{Binding SelectVisionFlow.DoubleParams[ROIWidth], TargetNullValue=—, UpdateSourceTrigger=LostFocus}" />
|
||||
<TextBox Grid.Row="1" Grid.Column="1" Text="{Binding SelectVisionFlow.DoubleParams[ROIWidth], UpdateSourceTrigger=LostFocus}" />
|
||||
<TextBlock Grid.Row="1" Grid.Column="2"
|
||||
Margin="3,0"
|
||||
Text="Height"
|
||||
VerticalAlignment="Center" />
|
||||
<TextBox Grid.Row="1" Grid.Column="3" Text="{Binding SelectVisionFlow.DoubleParams[ROIHeight], TargetNullValue=—, UpdateSourceTrigger=LostFocus}" />
|
||||
<TextBox Grid.Row="1" Grid.Column="3" Text="{Binding SelectVisionFlow.DoubleParams[ROIHeight], UpdateSourceTrigger=LostFocus}" />
|
||||
</Grid>
|
||||
</StackPanel>
|
||||
</GroupBox>
|
||||
@ -82,7 +82,7 @@
|
||||
IsThreeState="False" />
|
||||
|
||||
<TextBlock Grid.Row="4" Text="结果变量名" VerticalAlignment="Center" ToolTip="解码结果写入的局部变量名称" />
|
||||
<TextBox Grid.Row="4" Grid.Column="1" Text="{Binding SelectVisionFlow.StringParams[ResultVarName], Mode=TwoWay, TargetNullValue=条码解码_Result, UpdateSourceTrigger=LostFocus}" />
|
||||
<TextBox Grid.Row="4" Grid.Column="1" Text="{Binding SelectVisionFlow.StringParams[ResultVarName], Mode=TwoWay, UpdateSourceTrigger=LostFocus}" />
|
||||
</Grid>
|
||||
</GroupBox>
|
||||
|
||||
@ -104,7 +104,7 @@
|
||||
|
||||
<TextBlock Grid.Row="1" Text="使用管线" VerticalAlignment="Center" ToolTip="-1=失败,0=原图,1=CLAHE+Otsu,2=自适应阈值,3=形态学闭运算,4=锐化+Otsu" />
|
||||
<TextBox Grid.Row="1" Grid.Column="1"
|
||||
Text="{Binding SelectVisionFlow.IntParams[UsedPipeline], Mode=OneWay, TargetNullValue=—}"
|
||||
Text="{Binding SelectVisionFlow.IntParams[UsedPipeline], Mode=OneWay}"
|
||||
IsReadOnly="True" Background="#FFF0F0F0" />
|
||||
|
||||
<TextBlock Grid.Row="2" Text="解码内容" VerticalAlignment="Center" />
|
||||
|
||||
@ -55,14 +55,14 @@
|
||||
<ColumnDefinition />
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBlock Text="边缘阈值" VerticalAlignment="Center" />
|
||||
<TextBox Grid.Column="1" Text="{Binding SelectVisionFlow.IntParams[Threshold], Mode=TwoWay, TargetNullValue=30}" />
|
||||
<TextBox Grid.Column="1" Text="{Binding SelectVisionFlow.IntParams[Threshold], Mode=TwoWay}" />
|
||||
|
||||
|
||||
<TextBlock Grid.Row="2" Text="卡尺长度" VerticalAlignment="Center" ToolTip="径向扫描线长度(像素)" />
|
||||
<TextBox Grid.Row="2" Grid.Column="1" Text="{Binding SelectVisionFlow.IntParams[CaliperLength], Mode=TwoWay, TargetNullValue=100, UpdateSourceTrigger=LostFocus}" />
|
||||
<TextBox Grid.Row="2" Grid.Column="1" Text="{Binding SelectVisionFlow.IntParams[CaliperLength], Mode=TwoWay, UpdateSourceTrigger=LostFocus}" />
|
||||
|
||||
<TextBlock Grid.Row="3" Text="卡尺数量" VerticalAlignment="Center" ToolTip="圆周上均布的扫描线数量" />
|
||||
<TextBox Grid.Row="3" Grid.Column="1" Text="{Binding SelectVisionFlow.IntParams[NumCalipers], Mode=TwoWay, TargetNullValue=50, UpdateSourceTrigger=LostFocus}" />
|
||||
<TextBox Grid.Row="3" Grid.Column="1" Text="{Binding SelectVisionFlow.IntParams[NumCalipers], Mode=TwoWay, UpdateSourceTrigger=LostFocus}" />
|
||||
|
||||
<TextBlock Grid.Row="4" Text="方向" VerticalAlignment="Center" />
|
||||
<ComboBox Grid.Row="4" Grid.Column="1" SelectedIndex="{Binding SelectVisionFlow.IntParams[Direction], Mode=TwoWay}">
|
||||
@ -84,16 +84,16 @@
|
||||
</ComboBox>
|
||||
|
||||
<TextBlock Grid.Row="7" Text="最小分数%" VerticalAlignment="Center" />
|
||||
<TextBox Grid.Row="7" Grid.Column="1" Text="{Binding SelectVisionFlow.IntParams[MinScore], Mode=TwoWay, TargetNullValue=10}" />
|
||||
<TextBox Grid.Row="7" Grid.Column="1" Text="{Binding SelectVisionFlow.IntParams[MinScore], Mode=TwoWay}" />
|
||||
|
||||
<TextBlock Grid.Row="8" Text="RANSAC阈值" VerticalAlignment="Center" ToolTip="点到拟合圆的距离阈值(像素),用于区分内点和离群点" />
|
||||
<TextBox Grid.Row="8" Grid.Column="1" Text="{Binding SelectVisionFlow.DoubleParams[RansacTh], Mode=TwoWay, TargetNullValue=5, UpdateSourceTrigger=LostFocus}" />
|
||||
<TextBox Grid.Row="8" Grid.Column="1" Text="{Binding SelectVisionFlow.DoubleParams[RansacTh], Mode=TwoWay, UpdateSourceTrigger=LostFocus}" />
|
||||
|
||||
<TextBlock Grid.Row="9" Text="最小内点数" VerticalAlignment="Center" ToolTip="RANSAC 拟合的内点数量下限" />
|
||||
<TextBox Grid.Row="9" Grid.Column="1" Text="{Binding SelectVisionFlow.IntParams[MinInliers], Mode=TwoWay, TargetNullValue=10, UpdateSourceTrigger=LostFocus}" />
|
||||
<TextBox Grid.Row="9" Grid.Column="1" Text="{Binding SelectVisionFlow.IntParams[MinInliers], Mode=TwoWay, UpdateSourceTrigger=LostFocus}" />
|
||||
|
||||
<TextBlock Grid.Row="10" Text="结果变量" VerticalAlignment="Center" ToolTip="结果保存到此 Circle 类型变量" />
|
||||
<TextBox Grid.Row="10" Grid.Column="1" Text="{Binding SelectVisionFlow.StringParams[CircleResultVar], Mode=TwoWay, TargetNullValue=卡尺找圆_Circle}" />
|
||||
<TextBox Grid.Row="10" Grid.Column="1" Text="{Binding SelectVisionFlow.StringParams[CircleResultVar], Mode=TwoWay}" />
|
||||
|
||||
<TextBlock Grid.Row="11" Text="内点数" VerticalAlignment="Center" />
|
||||
<TextBox Grid.Row="11" Grid.Column="1"
|
||||
@ -116,15 +116,15 @@
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBlock Grid.Row="0" Text="模板X" VerticalAlignment="Center" />
|
||||
<TextBox Grid.Row="0" Grid.Column="1"
|
||||
Text="{Binding SelectVisionFlow.DoubleParams[TemplateCircleCX], TargetNullValue=—}"
|
||||
Text="{Binding SelectVisionFlow.DoubleParams[TemplateCircleCX]}"
|
||||
IsReadOnly="True" Background="#FFF0F0F0" />
|
||||
<TextBlock Grid.Row="1" Text="模板Y" VerticalAlignment="Center" />
|
||||
<TextBox Grid.Row="1" Grid.Column="1"
|
||||
Text="{Binding SelectVisionFlow.DoubleParams[TemplateCircleCY], TargetNullValue=—}"
|
||||
Text="{Binding SelectVisionFlow.DoubleParams[TemplateCircleCY]}"
|
||||
IsReadOnly="True" Background="#FFF0F0F0" />
|
||||
<TextBlock Grid.Row="2" Text="模板半径" VerticalAlignment="Center" />
|
||||
<TextBox Grid.Row="2" Grid.Column="1"
|
||||
Text="{Binding SelectVisionFlow.DoubleParams[TemplateCircleR], TargetNullValue=—}"
|
||||
Text="{Binding SelectVisionFlow.DoubleParams[TemplateCircleR]}"
|
||||
IsReadOnly="True" Background="#FFF0F0F0" />
|
||||
</Grid>
|
||||
<Grid Margin="5">
|
||||
@ -133,7 +133,7 @@
|
||||
<ColumnDefinition />
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBlock Text="偏移变量" VerticalAlignment="Center" />
|
||||
<TextBox Grid.Column="1" Text="{Binding SelectVisionFlow.StringParams[CircleOffsetVar], Mode=TwoWay, TargetNullValue=找圆_Offset}" />
|
||||
<TextBox Grid.Column="1" Text="{Binding SelectVisionFlow.StringParams[CircleOffsetVar], Mode=TwoWay}" />
|
||||
</Grid>
|
||||
</StackPanel>
|
||||
</GroupBox>
|
||||
|
||||
@ -52,13 +52,13 @@
|
||||
<ColumnDefinition />
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBlock Text="边缘阈值" VerticalAlignment="Center" />
|
||||
<TextBox Grid.Column="1" Text="{Binding SelectVisionFlow.IntParams[Threshold], Mode=TwoWay, TargetNullValue=30}" />
|
||||
<TextBox Grid.Column="1" Text="{Binding SelectVisionFlow.IntParams[Threshold], Mode=TwoWay, =30}" />
|
||||
|
||||
<TextBlock Grid.Row="1" Text="卡尺长度" VerticalAlignment="Center" ToolTip="扫描线长度(像素)" />
|
||||
<TextBox Grid.Row="1" Grid.Column="1" Text="{Binding SelectVisionFlow.IntParams[CaliperLength], Mode=TwoWay, TargetNullValue=100, UpdateSourceTrigger=LostFocus}" />
|
||||
<TextBox Grid.Row="1" Grid.Column="1" Text="{Binding SelectVisionFlow.IntParams[CaliperLength], Mode=TwoWay, =100, UpdateSourceTrigger=LostFocus}" />
|
||||
|
||||
<TextBlock Grid.Row="2" Text="卡尺数量" VerticalAlignment="Center" ToolTip="扫描线数量" />
|
||||
<TextBox Grid.Row="2" Grid.Column="1" Text="{Binding SelectVisionFlow.IntParams[NumCalipers], Mode=TwoWay, TargetNullValue=10, UpdateSourceTrigger=LostFocus}" />
|
||||
<TextBox Grid.Row="2" Grid.Column="1" Text="{Binding SelectVisionFlow.IntParams[NumCalipers], Mode=TwoWay, =10, UpdateSourceTrigger=LostFocus}" />
|
||||
|
||||
<TextBlock Grid.Row="3" Text="方向" VerticalAlignment="Center" />
|
||||
<ComboBox Grid.Row="3" Grid.Column="1" SelectedIndex="{Binding SelectVisionFlow.IntParams[Direction], Mode=TwoWay}">
|
||||
@ -74,13 +74,13 @@
|
||||
</ComboBox>
|
||||
|
||||
<TextBlock Grid.Row="5" Text="最小分数%" VerticalAlignment="Center" />
|
||||
<TextBox Grid.Row="5" Grid.Column="1" Text="{Binding SelectVisionFlow.IntParams[MinScore], Mode=TwoWay, TargetNullValue=10}" />
|
||||
<TextBox Grid.Row="5" Grid.Column="1" Text="{Binding SelectVisionFlow.IntParams[MinScore], Mode=TwoWay, =10}" />
|
||||
|
||||
<TextBlock Grid.Row="6" Text="RANSAC阈值" VerticalAlignment="Center" />
|
||||
<TextBox Grid.Row="6" Grid.Column="1" Text="{Binding SelectVisionFlow.DoubleParams[RansacTh], Mode=TwoWay, TargetNullValue=5, UpdateSourceTrigger=LostFocus}" />
|
||||
<TextBox Grid.Row="6" Grid.Column="1" Text="{Binding SelectVisionFlow.DoubleParams[RansacTh], Mode=TwoWay, =5, UpdateSourceTrigger=LostFocus}" />
|
||||
|
||||
<TextBlock Grid.Row="7" Text="结果变量" VerticalAlignment="Center" />
|
||||
<TextBox Grid.Row="7" Grid.Column="1" Text="{Binding SelectVisionFlow.StringParams[EdgeName], Mode=TwoWay, TargetNullValue=卡尺寻边_Edge}" />
|
||||
<TextBox Grid.Row="7" Grid.Column="1" Text="{Binding SelectVisionFlow.StringParams[EdgeName], Mode=TwoWay, =卡尺寻边_Edge}" />
|
||||
</Grid>
|
||||
</GroupBox>
|
||||
<GroupBox Header="模板">
|
||||
@ -100,23 +100,23 @@
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBlock Grid.Row="0" Text="模板起点X" VerticalAlignment="Center" />
|
||||
<TextBox Grid.Row="0" Grid.Column="1"
|
||||
Text="{Binding SelectVisionFlow.DoubleParams[TemplateLineStartX], TargetNullValue=—}"
|
||||
Text="{Binding SelectVisionFlow.DoubleParams[TemplateLineStartX]}"
|
||||
IsReadOnly="True" Background="#FFF0F0F0" />
|
||||
<TextBlock Grid.Row="1" Text="模板起点Y" VerticalAlignment="Center" />
|
||||
<TextBox Grid.Row="1" Grid.Column="1"
|
||||
Text="{Binding SelectVisionFlow.DoubleParams[TemplateLineStartY], TargetNullValue=—}"
|
||||
Text="{Binding SelectVisionFlow.DoubleParams[TemplateLineStartY]}"
|
||||
IsReadOnly="True" Background="#FFF0F0F0" />
|
||||
<TextBlock Grid.Row="2" Text="模板终点X" VerticalAlignment="Center" />
|
||||
<TextBox Grid.Row="2" Grid.Column="1"
|
||||
Text="{Binding SelectVisionFlow.DoubleParams[TemplateLineEndX], TargetNullValue=—}"
|
||||
Text="{Binding SelectVisionFlow.DoubleParams[TemplateLineEndX]}"
|
||||
IsReadOnly="True" Background="#FFF0F0F0" />
|
||||
<TextBlock Grid.Row="3" Text="模板终点Y" VerticalAlignment="Center" />
|
||||
<TextBox Grid.Row="3" Grid.Column="1"
|
||||
Text="{Binding SelectVisionFlow.DoubleParams[TemplateLineEndY], TargetNullValue=—}"
|
||||
Text="{Binding SelectVisionFlow.DoubleParams[TemplateLineEndY]}"
|
||||
IsReadOnly="True" Background="#FFF0F0F0" />
|
||||
<TextBlock Grid.Row="4" Text="模板角度" VerticalAlignment="Center" />
|
||||
<TextBox Grid.Row="4" Grid.Column="1"
|
||||
Text="{Binding SelectVisionFlow.DoubleParams[TemplateLineAngle], TargetNullValue=—}"
|
||||
Text="{Binding SelectVisionFlow.DoubleParams[TemplateLineAngle]}"
|
||||
IsReadOnly="True" Background="#FFF0F0F0" />
|
||||
</Grid>
|
||||
<Grid Margin="5">
|
||||
@ -125,7 +125,7 @@
|
||||
<ColumnDefinition />
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBlock Text="偏移变量" VerticalAlignment="Center" />
|
||||
<TextBox Grid.Column="1" Text="{Binding SelectVisionFlow.StringParams[LineOffsetVar], Mode=TwoWay, TargetNullValue=找线_Offset}" />
|
||||
<TextBox Grid.Column="1" Text="{Binding SelectVisionFlow.StringParams[LineOffsetVar], Mode=TwoWay, =找线_Offset}" />
|
||||
</Grid>
|
||||
</StackPanel>
|
||||
</GroupBox>
|
||||
|
||||
@ -61,13 +61,13 @@
|
||||
<ColumnDefinition />
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBlock Text="边缘阈值" VerticalAlignment="Center" />
|
||||
<TextBox Grid.Column="1" Text="{Binding SelectVisionFlow.IntParams[Threshold], Mode=TwoWay, TargetNullValue=30}" />
|
||||
<TextBox Grid.Column="1" Text="{Binding SelectVisionFlow.IntParams[Threshold], Mode=TwoWay, =30}" />
|
||||
|
||||
<TextBlock Grid.Row="1" Text="卡尺长度" VerticalAlignment="Center" ToolTip="扫描线长度(像素)" />
|
||||
<TextBox Grid.Row="1" Grid.Column="1" Text="{Binding SelectVisionFlow.IntParams[CaliperLength], Mode=TwoWay, TargetNullValue=100, UpdateSourceTrigger=LostFocus}" />
|
||||
<TextBox Grid.Row="1" Grid.Column="1" Text="{Binding SelectVisionFlow.IntParams[CaliperLength], Mode=TwoWay, =100, UpdateSourceTrigger=LostFocus}" />
|
||||
|
||||
<TextBlock Grid.Row="2" Text="卡尺数量" VerticalAlignment="Center" ToolTip="每条边均布的扫描线数量" />
|
||||
<TextBox Grid.Row="2" Grid.Column="1" Text="{Binding SelectVisionFlow.IntParams[NumCalipers], Mode=TwoWay, TargetNullValue=50, UpdateSourceTrigger=LostFocus}" />
|
||||
<TextBox Grid.Row="2" Grid.Column="1" Text="{Binding SelectVisionFlow.IntParams[NumCalipers], Mode=TwoWay, =50, UpdateSourceTrigger=LostFocus}" />
|
||||
|
||||
<TextBlock Grid.Row="3" Text="方向" VerticalAlignment="Center" />
|
||||
<ComboBox Grid.Row="3" Grid.Column="1" SelectedIndex="{Binding SelectVisionFlow.IntParams[Direction], Mode=TwoWay}">
|
||||
@ -89,16 +89,16 @@
|
||||
</ComboBox>
|
||||
|
||||
<TextBlock Grid.Row="6" Text="最小分数%" VerticalAlignment="Center" />
|
||||
<TextBox Grid.Row="6" Grid.Column="1" Text="{Binding SelectVisionFlow.IntParams[MinScore], Mode=TwoWay, TargetNullValue=10}" />
|
||||
<TextBox Grid.Row="6" Grid.Column="1" Text="{Binding SelectVisionFlow.IntParams[MinScore], Mode=TwoWay, =10}" />
|
||||
|
||||
<TextBlock Grid.Row="7" Text="RANSAC阈值" VerticalAlignment="Center" ToolTip="点到拟合边缘的距离阈值(像素)" />
|
||||
<TextBox Grid.Row="7" Grid.Column="1" Text="{Binding SelectVisionFlow.DoubleParams[RansacTh], Mode=TwoWay, TargetNullValue=5, UpdateSourceTrigger=LostFocus}" />
|
||||
<TextBox Grid.Row="7" Grid.Column="1" Text="{Binding SelectVisionFlow.DoubleParams[RansacTh], Mode=TwoWay, =5, UpdateSourceTrigger=LostFocus}" />
|
||||
|
||||
<TextBlock Grid.Row="8" Text="最小内点数" VerticalAlignment="Center" />
|
||||
<TextBox Grid.Row="8" Grid.Column="1" Text="{Binding SelectVisionFlow.IntParams[MinInliers], Mode=TwoWay, TargetNullValue=10, UpdateSourceTrigger=LostFocus}" />
|
||||
<TextBox Grid.Row="8" Grid.Column="1" Text="{Binding SelectVisionFlow.IntParams[MinInliers], Mode=TwoWay, =10, UpdateSourceTrigger=LostFocus}" />
|
||||
|
||||
<TextBlock Grid.Row="9" Text="结果变量" VerticalAlignment="Center" />
|
||||
<TextBox Grid.Row="9" Grid.Column="1" Text="{Binding SelectVisionFlow.StringParams[RectResultVar], Mode=TwoWay, TargetNullValue=卡尺找旋转矩形_Rect}" />
|
||||
<TextBox Grid.Row="9" Grid.Column="1" Text="{Binding SelectVisionFlow.StringParams[RectResultVar], Mode=TwoWay, =卡尺找旋转矩形_Rect}" />
|
||||
|
||||
<TextBlock Grid.Row="10" Text="内点数" VerticalAlignment="Center" />
|
||||
<TextBox Grid.Row="10" Grid.Column="1"
|
||||
@ -123,19 +123,19 @@
|
||||
<ColumnDefinition />
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBlock Grid.Row="0" Text="模板X" VerticalAlignment="Center" />
|
||||
<TextBox Grid.Row="0" Grid.Column="1" Text="{Binding SelectVisionFlow.DoubleParams[TemplateRectCX], TargetNullValue=—}" IsReadOnly="True" Background="#FFF0F0F0" />
|
||||
<TextBox Grid.Row="0" Grid.Column="1" Text="{Binding SelectVisionFlow.DoubleParams[TemplateRectCX]}" IsReadOnly="True" Background="#FFF0F0F0" />
|
||||
<TextBlock Grid.Row="1" Text="模板Y" VerticalAlignment="Center" />
|
||||
<TextBox Grid.Row="1" Grid.Column="1" Text="{Binding SelectVisionFlow.DoubleParams[TemplateRectCY], TargetNullValue=—}" IsReadOnly="True" Background="#FFF0F0F0" />
|
||||
<TextBox Grid.Row="1" Grid.Column="1" Text="{Binding SelectVisionFlow.DoubleParams[TemplateRectCY]}" IsReadOnly="True" Background="#FFF0F0F0" />
|
||||
<TextBlock Grid.Row="2" Text="模板角度" VerticalAlignment="Center" />
|
||||
<TextBox Grid.Row="2" Grid.Column="1" Text="{Binding SelectVisionFlow.DoubleParams[TemplateRectAngle], TargetNullValue=—}" IsReadOnly="True" Background="#FFF0F0F0" />
|
||||
<TextBox Grid.Row="2" Grid.Column="1" Text="{Binding SelectVisionFlow.DoubleParams[TemplateRectAngle]}" IsReadOnly="True" Background="#FFF0F0F0" />
|
||||
|
||||
<TextBlock Grid.Row="3" Text="偏移X" VerticalAlignment="Center" />
|
||||
<TextBox Grid.Row="3" Grid.Column="1" Text="{Binding SelectedVisionFunction.Params.ResultDoubles[RectOffsetX], Mode=OneWay, TargetNullValue=—}" IsReadOnly="True" Background="#FFF0F0F0" />
|
||||
<TextBox Grid.Row="3" Grid.Column="1" Text="{Binding SelectedVisionFunction.Params.ResultDoubles[RectOffsetX], Mode=OneWay}" IsReadOnly="True" Background="#FFF0F0F0" />
|
||||
<TextBlock Grid.Row="4" Text="偏移Y" VerticalAlignment="Center" />
|
||||
<TextBox Grid.Row="4" Grid.Column="1" Text="{Binding SelectedVisionFunction.Params.ResultDoubles[RectOffsetY], Mode=OneWay, TargetNullValue=—}" IsReadOnly="True" Background="#FFF0F0F0" />
|
||||
<TextBox Grid.Row="4" Grid.Column="1" Text="{Binding SelectedVisionFunction.Params.ResultDoubles[RectOffsetY], Mode=OneWay}" IsReadOnly="True" Background="#FFF0F0F0" />
|
||||
|
||||
<TextBlock Grid.Row="5" Text="角度偏移" VerticalAlignment="Center" />
|
||||
<TextBox Grid.Row="5" Grid.Column="1" Text="{Binding SelectedVisionFunction.Params.ResultDoubles[RectOffsetAngle], Mode=OneWay, TargetNullValue=—}" IsReadOnly="True" Background="#FFF0F0F0" />
|
||||
<TextBox Grid.Row="5" Grid.Column="1" Text="{Binding SelectedVisionFunction.Params.ResultDoubles[RectOffsetAngle], Mode=OneWay}" IsReadOnly="True" Background="#FFF0F0F0" />
|
||||
</Grid>
|
||||
<Grid Margin="5">
|
||||
<Grid.RowDefinitions>
|
||||
@ -146,7 +146,7 @@
|
||||
<ColumnDefinition />
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBlock Text="偏移变量" VerticalAlignment="Center" />
|
||||
<TextBox Grid.Column="1" Text="{Binding SelectVisionFlow.StringParams[RectOffsetVar], Mode=TwoWay, TargetNullValue=找矩形_Offset}" />
|
||||
<TextBox Grid.Column="1" Text="{Binding SelectVisionFlow.StringParams[RectOffsetVar], Mode=TwoWay, =找矩形_Offset}" />
|
||||
</Grid>
|
||||
</StackPanel>
|
||||
</GroupBox>
|
||||
|
||||
@ -26,16 +26,16 @@
|
||||
<ColumnDefinition />
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBlock Margin="3,0" Text="Left" VerticalAlignment="Center" />
|
||||
<TextBox Grid.Column="1" Text="{Binding SelectVisionFlow.DoubleParams[ROILeft], TargetNullValue=—, UpdateSourceTrigger=LostFocus}" />
|
||||
<TextBox Grid.Column="1" Text="{Binding SelectVisionFlow.DoubleParams[ROILeft], UpdateSourceTrigger=LostFocus}" />
|
||||
<TextBlock Grid.Column="2" Margin="3,0" Text="Top" VerticalAlignment="Center" />
|
||||
<TextBox Grid.Column="3" Text="{Binding SelectVisionFlow.DoubleParams[ROITop], TargetNullValue=—, UpdateSourceTrigger=LostFocus}" />
|
||||
<TextBox Grid.Column="3" Text="{Binding SelectVisionFlow.DoubleParams[ROITop], UpdateSourceTrigger=LostFocus}" />
|
||||
<TextBlock Grid.Row="1" Margin="3,0" Text="Width" VerticalAlignment="Center" />
|
||||
<TextBox Grid.Row="1" Grid.Column="1" Text="{Binding SelectVisionFlow.DoubleParams[ROIWidth], TargetNullValue=—, UpdateSourceTrigger=LostFocus}" />
|
||||
<TextBox Grid.Row="1" Grid.Column="1" Text="{Binding SelectVisionFlow.DoubleParams[ROIWidth], UpdateSourceTrigger=LostFocus}" />
|
||||
<TextBlock Grid.Row="1" Grid.Column="2"
|
||||
Margin="3,0"
|
||||
Text="Height"
|
||||
VerticalAlignment="Center" />
|
||||
<TextBox Grid.Row="1" Grid.Column="3" Text="{Binding SelectVisionFlow.DoubleParams[ROIHeight], TargetNullValue=—, UpdateSourceTrigger=LostFocus}" />
|
||||
<TextBox Grid.Row="1" Grid.Column="3" Text="{Binding SelectVisionFlow.DoubleParams[ROIHeight], UpdateSourceTrigger=LostFocus}" />
|
||||
</Grid>
|
||||
</StackPanel>
|
||||
</GroupBox>
|
||||
@ -57,19 +57,19 @@
|
||||
|
||||
<!-- H -->
|
||||
<TextBlock Text="H 最小值" VerticalAlignment="Center" />
|
||||
<TextBox Grid.Column="1" Text="{Binding SelectVisionFlow.IntParams[HMin], TargetNullValue=0, UpdateSourceTrigger=PropertyChanged}" />
|
||||
<TextBox Grid.Column="1" Text="{Binding SelectVisionFlow.IntParams[HMin], =0, UpdateSourceTrigger=PropertyChanged}" />
|
||||
<TextBlock Grid.Column="2" Text="H 最大值" VerticalAlignment="Center" />
|
||||
<TextBox Grid.Column="3" Text="{Binding SelectVisionFlow.IntParams[HMax], TargetNullValue=180, UpdateSourceTrigger=PropertyChanged}" />
|
||||
<TextBox Grid.Column="3" Text="{Binding SelectVisionFlow.IntParams[HMax], =180, UpdateSourceTrigger=PropertyChanged}" />
|
||||
|
||||
<TextBlock Grid.Row="1" Text="S 最小值" VerticalAlignment="Center" />
|
||||
<TextBox Grid.Row="1" Grid.Column="1" Text="{Binding SelectVisionFlow.IntParams[SMin], TargetNullValue=0, UpdateSourceTrigger=PropertyChanged}" />
|
||||
<TextBox Grid.Row="1" Grid.Column="1" Text="{Binding SelectVisionFlow.IntParams[SMin], =0, UpdateSourceTrigger=PropertyChanged}" />
|
||||
<TextBlock Grid.Row="1" Grid.Column="2" Text="S 最大值" VerticalAlignment="Center" />
|
||||
<TextBox Grid.Row="1" Grid.Column="3" Text="{Binding SelectVisionFlow.IntParams[SMax], TargetNullValue=255, UpdateSourceTrigger=PropertyChanged}" />
|
||||
<TextBox Grid.Row="1" Grid.Column="3" Text="{Binding SelectVisionFlow.IntParams[SMax], =255, UpdateSourceTrigger=PropertyChanged}" />
|
||||
|
||||
<TextBlock Grid.Row="2" Text="V 最小值" VerticalAlignment="Center" />
|
||||
<TextBox Grid.Row="2" Grid.Column="1" Text="{Binding SelectVisionFlow.IntParams[VMin], TargetNullValue=0, UpdateSourceTrigger=PropertyChanged}" />
|
||||
<TextBox Grid.Row="2" Grid.Column="1" Text="{Binding SelectVisionFlow.IntParams[VMin], =0, UpdateSourceTrigger=PropertyChanged}" />
|
||||
<TextBlock Grid.Row="2" Grid.Column="2" Text="V 最大值" VerticalAlignment="Center" />
|
||||
<TextBox Grid.Row="2" Grid.Column="3" Text="{Binding SelectVisionFlow.IntParams[VMax], TargetNullValue=255, UpdateSourceTrigger=PropertyChanged}" />
|
||||
<TextBox Grid.Row="2" Grid.Column="3" Text="{Binding SelectVisionFlow.IntParams[VMax], =255, UpdateSourceTrigger=PropertyChanged}" />
|
||||
</Grid>
|
||||
</GroupBox>
|
||||
|
||||
@ -86,10 +86,10 @@
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<TextBlock Text="下限 %" VerticalAlignment="Center" ToolTip="颜色面积占比低于此值判定为 NG" />
|
||||
<TextBox Grid.Column="1" Text="{Binding SelectVisionFlow.DoubleParams[AreaMinPercent], TargetNullValue=0, UpdateSourceTrigger=LostFocus}" />
|
||||
<TextBox Grid.Column="1" Text="{Binding SelectVisionFlow.DoubleParams[AreaMinPercent], =0, UpdateSourceTrigger=LostFocus}" />
|
||||
|
||||
<TextBlock Grid.Row="1" Text="上限 %" VerticalAlignment="Center" ToolTip="颜色面积占比高于此值判定为 NG" />
|
||||
<TextBox Grid.Row="1" Grid.Column="1" Text="{Binding SelectVisionFlow.DoubleParams[AreaMaxPercent], TargetNullValue=100, UpdateSourceTrigger=LostFocus}" />
|
||||
<TextBox Grid.Row="1" Grid.Column="1" Text="{Binding SelectVisionFlow.DoubleParams[AreaMaxPercent], =100, UpdateSourceTrigger=LostFocus}" />
|
||||
</Grid>
|
||||
</GroupBox>
|
||||
|
||||
@ -116,7 +116,7 @@
|
||||
|
||||
<TextBlock Grid.Row="2" Text="判定结果" VerticalAlignment="Center" />
|
||||
<TextBox Grid.Row="2" Grid.Column="1"
|
||||
Text="{Binding SelectVisionFlow.StringParams[ColorAreaResult], Mode=OneWay, TargetNullValue=—}"
|
||||
Text="{Binding SelectVisionFlow.StringParams[ColorAreaResult], Mode=OneWay}"
|
||||
FontWeight="Bold"
|
||||
IsReadOnly="True" Background="#FFF0F0F0" />
|
||||
</Grid>
|
||||
|
||||
@ -26,16 +26,16 @@
|
||||
<ColumnDefinition />
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBlock Margin="3,0" Text="Left" VerticalAlignment="Center" />
|
||||
<TextBox Grid.Column="1" Text="{Binding SelectVisionFlow.DoubleParams[ROILeft], TargetNullValue=—, UpdateSourceTrigger=LostFocus}" />
|
||||
<TextBox Grid.Column="1" Text="{Binding SelectVisionFlow.DoubleParams[ROILeft], UpdateSourceTrigger=LostFocus}" />
|
||||
<TextBlock Grid.Column="2" Margin="3,0" Text="Top" VerticalAlignment="Center" />
|
||||
<TextBox Grid.Column="3" Text="{Binding SelectVisionFlow.DoubleParams[ROITop], TargetNullValue=—, UpdateSourceTrigger=LostFocus}" />
|
||||
<TextBox Grid.Column="3" Text="{Binding SelectVisionFlow.DoubleParams[ROITop], UpdateSourceTrigger=LostFocus}" />
|
||||
<TextBlock Grid.Row="1" Margin="3,0" Text="Width" VerticalAlignment="Center" />
|
||||
<TextBox Grid.Row="1" Grid.Column="1" Text="{Binding SelectVisionFlow.DoubleParams[ROIWidth], TargetNullValue=—, UpdateSourceTrigger=LostFocus}" />
|
||||
<TextBox Grid.Row="1" Grid.Column="1" Text="{Binding SelectVisionFlow.DoubleParams[ROIWidth], UpdateSourceTrigger=LostFocus}" />
|
||||
<TextBlock Grid.Row="1" Grid.Column="2"
|
||||
Margin="3,0"
|
||||
Text="Height"
|
||||
VerticalAlignment="Center" />
|
||||
<TextBox Grid.Row="1" Grid.Column="3" Text="{Binding SelectVisionFlow.DoubleParams[ROIHeight], TargetNullValue=—, UpdateSourceTrigger=LostFocus}" />
|
||||
<TextBox Grid.Row="1" Grid.Column="3" Text="{Binding SelectVisionFlow.DoubleParams[ROIHeight], UpdateSourceTrigger=LostFocus}" />
|
||||
</Grid>
|
||||
</StackPanel>
|
||||
</GroupBox>
|
||||
@ -54,10 +54,10 @@
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<TextBlock Text="最小值" VerticalAlignment="Center" />
|
||||
<TextBox Grid.Column="1" Text="{Binding SelectVisionFlow.IntParams[GrayMin], TargetNullValue=0, UpdateSourceTrigger=PropertyChanged}" />
|
||||
<TextBox Grid.Column="1" Text="{Binding SelectVisionFlow.IntParams[GrayMin], =0, UpdateSourceTrigger=PropertyChanged}" />
|
||||
|
||||
<TextBlock Grid.Column="2" Text="最大值" VerticalAlignment="Center" />
|
||||
<TextBox Grid.Column="3" Text="{Binding SelectVisionFlow.IntParams[GrayMax], TargetNullValue=255, UpdateSourceTrigger=PropertyChanged}" />
|
||||
<TextBox Grid.Column="3" Text="{Binding SelectVisionFlow.IntParams[GrayMax], =255, UpdateSourceTrigger=PropertyChanged}" />
|
||||
</Grid>
|
||||
</GroupBox>
|
||||
|
||||
@ -74,10 +74,10 @@
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<TextBlock Text="下限 %" VerticalAlignment="Center" ToolTip="灰度面积占比低于此值判定为 NG" />
|
||||
<TextBox Grid.Column="1" Text="{Binding SelectVisionFlow.DoubleParams[AreaMinPercent], TargetNullValue=0, UpdateSourceTrigger=LostFocus}" />
|
||||
<TextBox Grid.Column="1" Text="{Binding SelectVisionFlow.DoubleParams[AreaMinPercent], =0, UpdateSourceTrigger=LostFocus}" />
|
||||
|
||||
<TextBlock Grid.Row="1" Text="上限 %" VerticalAlignment="Center" ToolTip="灰度面积占比高于此值判定为 NG" />
|
||||
<TextBox Grid.Row="1" Grid.Column="1" Text="{Binding SelectVisionFlow.DoubleParams[AreaMaxPercent], TargetNullValue=100, UpdateSourceTrigger=LostFocus}" />
|
||||
<TextBox Grid.Row="1" Grid.Column="1" Text="{Binding SelectVisionFlow.DoubleParams[AreaMaxPercent], =100, UpdateSourceTrigger=LostFocus}" />
|
||||
</Grid>
|
||||
</GroupBox>
|
||||
|
||||
@ -104,7 +104,7 @@
|
||||
|
||||
<TextBlock Grid.Row="2" Text="判定结果" VerticalAlignment="Center" />
|
||||
<TextBox Grid.Row="2" Grid.Column="1"
|
||||
Text="{Binding SelectVisionFlow.StringParams[GrayAreaResult], Mode=OneWay, TargetNullValue=—}"
|
||||
Text="{Binding SelectVisionFlow.StringParams[GrayAreaResult], Mode=OneWay}"
|
||||
FontWeight="Bold"
|
||||
IsReadOnly="True" Background="#FFF0F0F0" />
|
||||
</Grid>
|
||||
|
||||
@ -20,7 +20,7 @@
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBlock Text="ROI 形状" VerticalAlignment="Center" />
|
||||
<ComboBox Grid.Column="1" Margin="5,0,0,0"
|
||||
SelectedValue="{Binding SelectVisionFlow.StringParams[ROIShape], TargetNullValue=矩形}"
|
||||
SelectedValue="{Binding SelectVisionFlow.StringParams[ROIShape], =矩形}"
|
||||
SelectedValuePath="Content">
|
||||
<ComboBoxItem Content="矩形" IsSelected="True" />
|
||||
<ComboBoxItem Content="旋转矩形" />
|
||||
@ -49,7 +49,7 @@
|
||||
<TextBlock Grid.Row="1" Grid.Column="2" Margin="5,0" Text="高度" VerticalAlignment="Center" />
|
||||
<TextBox Grid.Row="1" Grid.Column="3" Text="{Binding SelectVisionFlow.DoubleParams[TemplateHeight], UpdateSourceTrigger=LostFocus}" />
|
||||
<TextBlock Grid.Row="2" Text="模板名称" VerticalAlignment="Center" />
|
||||
<TextBox Grid.Row="2" Grid.Column="1" Grid.ColumnSpan="3" Text="{Binding SelectVisionFlow.StringParams[TemplateName], Mode=TwoWay, TargetNullValue=GrayMatch_Template}" />
|
||||
<TextBox Grid.Row="2" Grid.Column="1" Grid.ColumnSpan="3" Text="{Binding SelectVisionFlow.StringParams[TemplateName], Mode=TwoWay, =GrayMatch_Template}" />
|
||||
</Grid>
|
||||
</StackPanel>
|
||||
</GroupBox>
|
||||
@ -72,16 +72,16 @@
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<TextBlock Text="最小角度" VerticalAlignment="Center" ToolTip="角度搜索起始值(度)" />
|
||||
<TextBox Grid.Column="1" Text="{Binding SelectVisionFlow.DoubleParams[MinAngle], Mode=TwoWay, TargetNullValue=-10, UpdateSourceTrigger=LostFocus}" />
|
||||
<TextBox Grid.Column="1" Text="{Binding SelectVisionFlow.DoubleParams[MinAngle], Mode=TwoWay, =-10, UpdateSourceTrigger=LostFocus}" />
|
||||
|
||||
<TextBlock Grid.Row="1" Text="最大角度" VerticalAlignment="Center" ToolTip="角度搜索终止值(度)" />
|
||||
<TextBox Grid.Row="1" Grid.Column="1" Text="{Binding SelectVisionFlow.DoubleParams[MaxAngle], Mode=TwoWay, TargetNullValue=10, UpdateSourceTrigger=LostFocus}" />
|
||||
<TextBox Grid.Row="1" Grid.Column="1" Text="{Binding SelectVisionFlow.DoubleParams[MaxAngle], Mode=TwoWay, =10, UpdateSourceTrigger=LostFocus}" />
|
||||
|
||||
<TextBlock Grid.Row="2" Text="角度步长" VerticalAlignment="Center" ToolTip="生成模板的角度步长(度)。越小精度越高但预处理越慢" />
|
||||
<TextBox Grid.Row="2" Grid.Column="1" Text="{Binding SelectVisionFlow.DoubleParams[AngleStep], Mode=TwoWay, TargetNullValue=1, UpdateSourceTrigger=LostFocus}" />
|
||||
<TextBox Grid.Row="2" Grid.Column="1" Text="{Binding SelectVisionFlow.DoubleParams[AngleStep], Mode=TwoWay, =1, UpdateSourceTrigger=LostFocus}" />
|
||||
|
||||
<TextBlock Grid.Row="3" Text="分数下限" VerticalAlignment="Center" ToolTip="CCorrNormed 分数下限(-1~1)。越高匹配越好,低于此值则拒绝" />
|
||||
<TextBox Grid.Row="3" Grid.Column="1" Text="{Binding SelectVisionFlow.DoubleParams[MatchScoreMax], Mode=TwoWay, TargetNullValue=0.5, UpdateSourceTrigger=LostFocus}" />
|
||||
<TextBox Grid.Row="3" Grid.Column="1" Text="{Binding SelectVisionFlow.DoubleParams[MatchScoreMax], Mode=TwoWay, =0.5, UpdateSourceTrigger=LostFocus}" />
|
||||
</Grid>
|
||||
</StackPanel>
|
||||
</GroupBox>
|
||||
@ -94,7 +94,7 @@
|
||||
<ColumnDefinition />
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBlock Text="位置变量" VerticalAlignment="Center" ToolTip="匹配到的位置 (X,Y,角度) 写入此 Pos 变量" />
|
||||
<TextBox Grid.Column="1" Text="{Binding SelectVisionFlow.StringParams[GrayTemplateMatch_PosVar], Mode=TwoWay, TargetNullValue=灰度模板匹配_Pos}" />
|
||||
<TextBox Grid.Column="1" Text="{Binding SelectVisionFlow.StringParams[GrayTemplateMatch_PosVar], Mode=TwoWay, =灰度模板匹配_Pos}" />
|
||||
</Grid>
|
||||
</GroupBox>
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
<UserControl x:Class="PLCSharp.VVMs.Vision.VisionFlowHandler.Algorithm.MatrixGen"
|
||||
<UserControl x:Class="PLCSharp.VVMs.Vision.VisionFlowHandler.Algorithm.MatrixGen"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
@ -21,13 +21,13 @@
|
||||
<ColumnDefinition />
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBlock Text="X 平移" VerticalAlignment="Center" />
|
||||
<TextBox Grid.Column="1" Text="{Binding SelectVisionFlow.DoubleParams[MoveX], Mode=TwoWay, TargetNullValue=0, UpdateSourceTrigger=LostFocus}" />
|
||||
<TextBox Grid.Column="1" Text="{Binding SelectVisionFlow.DoubleParams[MoveX], Mode=TwoWay, =0, UpdateSourceTrigger=LostFocus}" />
|
||||
|
||||
<TextBlock Grid.Row="1" Text="Y 平移" VerticalAlignment="Center" />
|
||||
<TextBox Grid.Row="1" Grid.Column="1" Text="{Binding SelectVisionFlow.DoubleParams[MoveY], Mode=TwoWay, TargetNullValue=0, UpdateSourceTrigger=LostFocus}" />
|
||||
<TextBox Grid.Row="1" Grid.Column="1" Text="{Binding SelectVisionFlow.DoubleParams[MoveY], Mode=TwoWay, =0, UpdateSourceTrigger=LostFocus}" />
|
||||
|
||||
<TextBlock Grid.Row="2" Text="角度" VerticalAlignment="Center" ToolTip="旋转角度(度)" />
|
||||
<TextBox Grid.Row="2" Grid.Column="1" Text="{Binding SelectVisionFlow.DoubleParams[Angle], Mode=TwoWay, TargetNullValue=0, UpdateSourceTrigger=LostFocus}" />
|
||||
<TextBox Grid.Row="2" Grid.Column="1" Text="{Binding SelectVisionFlow.DoubleParams[Angle], Mode=TwoWay, =0, UpdateSourceTrigger=LostFocus}" />
|
||||
</Grid>
|
||||
</GroupBox>
|
||||
<GroupBox Header="输出变量">
|
||||
@ -37,7 +37,7 @@
|
||||
<ColumnDefinition />
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBlock Text="矩阵变量名" VerticalAlignment="Center" ToolTip="写入局部变量表的 String 变量名" />
|
||||
<TextBox Grid.Column="1" Text="{Binding SelectVisionFlow.StringParams[MatrixVar], Mode=TwoWay, TargetNullValue=生成矩阵, UpdateSourceTrigger=LostFocus}" />
|
||||
<TextBox Grid.Column="1" Text="{Binding SelectVisionFlow.StringParams[MatrixVar], Mode=TwoWay, =生成矩阵, UpdateSourceTrigger=LostFocus}" />
|
||||
</Grid>
|
||||
</GroupBox>
|
||||
</StackPanel>
|
||||
|
||||
@ -18,7 +18,7 @@
|
||||
<ColumnDefinition Width="*" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBlock Text="ROI 形状" VerticalAlignment="Center" />
|
||||
<ComboBox Grid.Column="1" Margin="5,0,0,0" SelectedValue="{Binding SelectVisionFlow.StringParams[ROIShape], TargetNullValue=矩形}" SelectedValuePath="Content">
|
||||
<ComboBox Grid.Column="1" Margin="5,0,0,0" SelectedValue="{Binding SelectVisionFlow.StringParams[ROIShape], =矩形}" SelectedValuePath="Content">
|
||||
<ComboBoxItem Content="矩形" IsSelected="True" />
|
||||
<ComboBoxItem Content="旋转矩形" />
|
||||
<ComboBoxItem Content="圆形" />
|
||||
@ -55,7 +55,7 @@
|
||||
<TextBox Grid.Row="1" Grid.Column="3" Text="{Binding SelectVisionFlow.DoubleParams[TemplateHeight], UpdateSourceTrigger=LostFocus}" />
|
||||
|
||||
<TextBlock Grid.Row="2" Text="模板名称" VerticalAlignment="Center" />
|
||||
<TextBox Grid.Row="2" Grid.Column="1" Grid.ColumnSpan="3" Text="{Binding SelectVisionFlow.StringParams[TemplateName], Mode=TwoWay, TargetNullValue=ORB_Template}" />
|
||||
<TextBox Grid.Row="2" Grid.Column="1" Grid.ColumnSpan="3" Text="{Binding SelectVisionFlow.StringParams[TemplateName], Mode=TwoWay, =ORB_Template}" />
|
||||
</Grid>
|
||||
</StackPanel>
|
||||
</GroupBox>
|
||||
@ -73,13 +73,13 @@
|
||||
<ColumnDefinition />
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBlock Text="特征点数量" VerticalAlignment="Center" ToolTip="提取的特征点越多越精确,但速度越慢" />
|
||||
<TextBox Grid.Column="1" Text="{Binding SelectVisionFlow.IntParams[NFeatures], Mode=TwoWay, TargetNullValue=1000, UpdateSourceTrigger=LostFocus}" />
|
||||
<TextBox Grid.Column="1" Text="{Binding SelectVisionFlow.IntParams[NFeatures], Mode=TwoWay, =1000, UpdateSourceTrigger=LostFocus}" />
|
||||
|
||||
<TextBlock Grid.Row="1" Text="最小匹配数" VerticalAlignment="Center" ToolTip="最少需要的优质匹配点数" />
|
||||
<TextBox Grid.Row="1" Grid.Column="1" Text="{Binding SelectVisionFlow.IntParams[MinMatches], Mode=TwoWay, TargetNullValue=8, UpdateSourceTrigger=LostFocus}" />
|
||||
<TextBox Grid.Row="1" Grid.Column="1" Text="{Binding SelectVisionFlow.IntParams[MinMatches], Mode=TwoWay, =8, UpdateSourceTrigger=LostFocus}" />
|
||||
|
||||
<TextBlock Grid.Row="2" Text="优质匹配比例" VerticalAlignment="Center" ToolTip="匹配距离 < 最小距离×此系数的视为优质匹配" />
|
||||
<TextBox Grid.Row="2" Grid.Column="1" Text="{Binding SelectVisionFlow.DoubleParams[MinGoodRatio], Mode=TwoWay, TargetNullValue=0.3, UpdateSourceTrigger=LostFocus}" />
|
||||
<TextBox Grid.Row="2" Grid.Column="1" Text="{Binding SelectVisionFlow.DoubleParams[MinGoodRatio], Mode=TwoWay, =0.3, UpdateSourceTrigger=LostFocus}" />
|
||||
</Grid>
|
||||
</GroupBox>
|
||||
|
||||
@ -94,10 +94,10 @@
|
||||
<ColumnDefinition />
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBlock Grid.Row="0" Text="绝对位置变量" VerticalAlignment="Center" ToolTip="匹配到的绝对位置写入此 Pos 变量" />
|
||||
<TextBox Grid.Row="0" Grid.Column="1" Text="{Binding SelectVisionFlow.StringParams[ORBMatch_PosVar], Mode=TwoWay, TargetNullValue=ORB匹配_Pos}" />
|
||||
<TextBox Grid.Row="0" Grid.Column="1" Text="{Binding SelectVisionFlow.StringParams[ORBMatch_PosVar], Mode=TwoWay, =ORB匹配_Pos}" />
|
||||
|
||||
<TextBlock Grid.Row="1" Text="相对位移变量" VerticalAlignment="Center" ToolTip="相对位移写入此 Pos 变量" />
|
||||
<TextBox Grid.Row="1" Grid.Column="1" Text="{Binding SelectVisionFlow.StringParams[ORBMatch_OffsetVar], Mode=TwoWay, TargetNullValue=ORB匹配_Offset}" />
|
||||
<TextBox Grid.Row="1" Grid.Column="1" Text="{Binding SelectVisionFlow.StringParams[ORBMatch_OffsetVar], Mode=TwoWay, =ORB匹配_Offset}" />
|
||||
</Grid>
|
||||
</GroupBox>
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
<UserControl x:Class="PLCSharp.VVMs.Vision.VisionFlowHandler.Algorithm.PointToLineDistance"
|
||||
<UserControl x:Class="PLCSharp.VVMs.Vision.VisionFlowHandler.Algorithm.PointToLineDistance"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
@ -34,7 +34,7 @@
|
||||
SelectedValue="{Binding SelectVisionFlow.StringParams[LineVar], Mode=TwoWay}"
|
||||
SelectedValuePath="Name" DisplayMemberPath="Name" />
|
||||
<TextBlock Grid.Row="2" Text="结果变量" VerticalAlignment="Center" />
|
||||
<TextBox Grid.Row="2" Grid.Column="1" Text="{Binding SelectVisionFlow.StringParams[ResultVar], Mode=TwoWay, TargetNullValue=点到线距离}" />
|
||||
<TextBox Grid.Row="2" Grid.Column="1" Text="{Binding SelectVisionFlow.StringParams[ResultVar], Mode=TwoWay, =点到线距离}" />
|
||||
<TextBlock Grid.Row="3" Text="距离" VerticalAlignment="Center" />
|
||||
<TextBox Grid.Row="3" Grid.Column="1"
|
||||
Text="{Binding SelectedVisionFunction.Params.ResultDoubles[PointLineDist_Distance], Mode=OneWay}"
|
||||
|
||||
@ -51,7 +51,7 @@ namespace PLCSharp.VVMs.Vision.VisionFlowHandler.Algorithm
|
||||
var resultVar = func.Params.Variables.FirstOrDefault(v => v.Name == resultVarName);
|
||||
if (resultVar == null)
|
||||
{
|
||||
resultVar = new LocalVariableItem(resultVarName, "double", 0.0);
|
||||
resultVar = new LocalVariableItem(resultVarName, "Double", 0.0);
|
||||
System.Windows.Application.Current.Dispatcher.Invoke(() => func.Params.Variables.Add(resultVar));
|
||||
}
|
||||
resultVar.RawValue = dist;
|
||||
|
||||
@ -35,7 +35,7 @@
|
||||
SelectedValue="{Binding SelectVisionFlow.StringParams[Point2Var], Mode=TwoWay}"
|
||||
SelectedValuePath="Name" DisplayMemberPath="Name" />
|
||||
<TextBlock Grid.Row="2" Text="结果变量" VerticalAlignment="Center" />
|
||||
<TextBox Grid.Row="2" Grid.Column="1" Text="{Binding SelectVisionFlow.StringParams[ResultVar], Mode=TwoWay, TargetNullValue=点到点距离}" />
|
||||
<TextBox Grid.Row="2" Grid.Column="1" Text="{Binding SelectVisionFlow.StringParams[ResultVar], Mode=TwoWay, =点到点距离}" />
|
||||
<TextBlock Grid.Row="3" Text="距离" VerticalAlignment="Center" />
|
||||
<TextBox Grid.Row="3" Grid.Column="1"
|
||||
Text="{Binding SelectedVisionFunction.Params.ResultDoubles[PointDist_Distance], Mode=OneWay}"
|
||||
|
||||
@ -18,7 +18,7 @@
|
||||
<ColumnDefinition Width="*" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBlock Text="ROI 形状" VerticalAlignment="Center" />
|
||||
<ComboBox Grid.Column="1" Margin="5,0,0,0" SelectedValue="{Binding SelectVisionFlow.StringParams[ROIShape], TargetNullValue=矩形}" SelectedValuePath="Content">
|
||||
<ComboBox Grid.Column="1" Margin="5,0,0,0" SelectedValue="{Binding SelectVisionFlow.StringParams[ROIShape], =矩形}" SelectedValuePath="Content">
|
||||
<ComboBoxItem Content="矩形" IsSelected="True" />
|
||||
<ComboBoxItem Content="旋转矩形" />
|
||||
<ComboBoxItem Content="圆形" />
|
||||
@ -54,7 +54,7 @@
|
||||
<TextBox Grid.Row="1" Grid.Column="3" Text="{Binding SelectVisionFlow.DoubleParams[TemplateHeight], UpdateSourceTrigger=LostFocus}" />
|
||||
|
||||
<TextBlock Grid.Row="2" Text="模板名称" VerticalAlignment="Center" />
|
||||
<TextBox Grid.Row="2" Grid.Column="1" Grid.ColumnSpan="3" Text="{Binding SelectVisionFlow.StringParams[TemplateName], Mode=TwoWay, TargetNullValue=SIFT_Template}" />
|
||||
<TextBox Grid.Row="2" Grid.Column="1" Grid.ColumnSpan="3" Text="{Binding SelectVisionFlow.StringParams[TemplateName], Mode=TwoWay, =SIFT_Template}" />
|
||||
</Grid>
|
||||
</StackPanel>
|
||||
</GroupBox>
|
||||
@ -71,13 +71,13 @@
|
||||
<ColumnDefinition />
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBlock Text="特征点数量" VerticalAlignment="Center" ToolTip="提取的特征点越多越精确,但速度越慢" />
|
||||
<TextBox Grid.Column="1" Text="{Binding SelectVisionFlow.IntParams[NFeatures], Mode=TwoWay, TargetNullValue=1000, UpdateSourceTrigger=LostFocus}" />
|
||||
<TextBox Grid.Column="1" Text="{Binding SelectVisionFlow.IntParams[NFeatures], Mode=TwoWay, =1000, UpdateSourceTrigger=LostFocus}" />
|
||||
|
||||
<TextBlock Grid.Row="1" Text="最小匹配数" VerticalAlignment="Center" ToolTip="最少需要的优质匹配点数" />
|
||||
<TextBox Grid.Row="1" Grid.Column="1" Text="{Binding SelectVisionFlow.IntParams[MinMatches], Mode=TwoWay, TargetNullValue=8, UpdateSourceTrigger=LostFocus}" />
|
||||
<TextBox Grid.Row="1" Grid.Column="1" Text="{Binding SelectVisionFlow.IntParams[MinMatches], Mode=TwoWay, =8, UpdateSourceTrigger=LostFocus}" />
|
||||
|
||||
<TextBlock Grid.Row="2" Text="优质匹配比例" VerticalAlignment="Center" ToolTip="匹配距离 < 最小距离×此系数的视为优质匹配" />
|
||||
<TextBox Grid.Row="2" Grid.Column="1" Text="{Binding SelectVisionFlow.DoubleParams[MinGoodRatio], Mode=TwoWay, TargetNullValue=0.3, UpdateSourceTrigger=LostFocus}" />
|
||||
<TextBox Grid.Row="2" Grid.Column="1" Text="{Binding SelectVisionFlow.DoubleParams[MinGoodRatio], Mode=TwoWay, =0.3, UpdateSourceTrigger=LostFocus}" />
|
||||
</Grid>
|
||||
</GroupBox>
|
||||
|
||||
@ -94,21 +94,21 @@
|
||||
<ColumnDefinition Width="Auto" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBlock Grid.Row="0" Text="绝对位置变量" VerticalAlignment="Center" ToolTip="匹配到的绝对位置写入此 Pos 变量" />
|
||||
<TextBox Grid.Row="0" Grid.Column="1" Text="{Binding SelectVisionFlow.StringParams[SiftMatch_PosVar], Mode=TwoWay, TargetNullValue=SIFT匹配_Pos}" />
|
||||
<TextBox Grid.Row="0" Grid.Column="1" Text="{Binding SelectVisionFlow.StringParams[SiftMatch_PosVar], Mode=TwoWay, =SIFT匹配_Pos}" />
|
||||
<CheckBox Grid.Row="0" Grid.Column="2"
|
||||
Margin="5,0"
|
||||
VerticalAlignment="Center"
|
||||
IsChecked="{Binding SelectVisionFlow.BoolParams[SiftMatch_OutPos]}" />
|
||||
|
||||
<TextBlock Grid.Row="1" Text="相对位移变量" VerticalAlignment="Center" ToolTip="相对位移写入此 Pos 变量" />
|
||||
<TextBox Grid.Row="1" Grid.Column="1" Text="{Binding SelectVisionFlow.StringParams[SiftMatch_OffsetVar], Mode=TwoWay, TargetNullValue=SIFT匹配_Offset}" />
|
||||
<TextBox Grid.Row="1" Grid.Column="1" Text="{Binding SelectVisionFlow.StringParams[SiftMatch_OffsetVar], Mode=TwoWay, =SIFT匹配_Offset}" />
|
||||
<CheckBox Grid.Row="1" Grid.Column="2"
|
||||
Margin="5,0"
|
||||
VerticalAlignment="Center"
|
||||
IsChecked="{Binding SelectVisionFlow.BoolParams[SiftMatch_OutOffset]}" />
|
||||
|
||||
<TextBlock Grid.Row="2" Text="变换矩阵变量" VerticalAlignment="Center" ToolTip="变换矩阵写入此 String 变量" />
|
||||
<TextBox Grid.Row="2" Grid.Column="1" Text="{Binding SelectVisionFlow.StringParams[SiftMatch_MatVar], Mode=TwoWay, TargetNullValue=SIFT匹配_矩阵}" />
|
||||
<TextBox Grid.Row="2" Grid.Column="1" Text="{Binding SelectVisionFlow.StringParams[SiftMatch_MatVar], Mode=TwoWay, =SIFT匹配_矩阵}" />
|
||||
<CheckBox Grid.Row="2" Grid.Column="2"
|
||||
Margin="5,0"
|
||||
VerticalAlignment="Center"
|
||||
|
||||
@ -35,7 +35,7 @@
|
||||
SelectedValue="{Binding SelectVisionFlow.StringParams[Line2Var], Mode=TwoWay}"
|
||||
SelectedValuePath="Name" DisplayMemberPath="Name" />
|
||||
<TextBlock Grid.Row="2" Text="结果变量" VerticalAlignment="Center" />
|
||||
<TextBox Grid.Row="2" Grid.Column="1" Text="{Binding SelectVisionFlow.StringParams[IntersectResultVar], Mode=TwoWay, TargetNullValue=两线交点}" />
|
||||
<TextBox Grid.Row="2" Grid.Column="1" Text="{Binding SelectVisionFlow.StringParams[IntersectResultVar], Mode=TwoWay, =两线交点}" />
|
||||
<TextBlock Grid.Row="3" Text="交点X" VerticalAlignment="Center" />
|
||||
<TextBox Grid.Row="3" Grid.Column="1"
|
||||
Text="{Binding SelectedVisionFunction.Params.ResultDoubles[IntersectX], Mode=OneWay}"
|
||||
@ -65,15 +65,15 @@
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBlock Grid.Row="0" Text="模板X" VerticalAlignment="Center" />
|
||||
<TextBox Grid.Row="0" Grid.Column="1"
|
||||
Text="{Binding SelectVisionFlow.DoubleParams[TemplateIntersectX], TargetNullValue=—}"
|
||||
Text="{Binding SelectVisionFlow.DoubleParams[TemplateIntersectX]}"
|
||||
IsReadOnly="True" Background="#FFF0F0F0" />
|
||||
<TextBlock Grid.Row="1" Text="模板Y" VerticalAlignment="Center" />
|
||||
<TextBox Grid.Row="1" Grid.Column="1"
|
||||
Text="{Binding SelectVisionFlow.DoubleParams[TemplateIntersectY], TargetNullValue=—}"
|
||||
Text="{Binding SelectVisionFlow.DoubleParams[TemplateIntersectY]}"
|
||||
IsReadOnly="True" Background="#FFF0F0F0" />
|
||||
<TextBlock Grid.Row="2" Text="模板角度" VerticalAlignment="Center" />
|
||||
<TextBox Grid.Row="2" Grid.Column="1"
|
||||
Text="{Binding SelectVisionFlow.DoubleParams[TemplateLineAngle], TargetNullValue=—}"
|
||||
Text="{Binding SelectVisionFlow.DoubleParams[TemplateLineAngle]}"
|
||||
IsReadOnly="True" Background="#FFF0F0F0" />
|
||||
</Grid>
|
||||
<Grid Margin="5">
|
||||
@ -105,7 +105,7 @@
|
||||
<ColumnDefinition />
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBlock Text="偏移变量" VerticalAlignment="Center" />
|
||||
<TextBox Grid.Column="1" Text="{Binding SelectVisionFlow.StringParams[IntersectOffsetVar], Mode=TwoWay, TargetNullValue=两线交点_Offset}" />
|
||||
<TextBox Grid.Column="1" Text="{Binding SelectVisionFlow.StringParams[IntersectOffsetVar], Mode=TwoWay, =两线交点_Offset}" />
|
||||
</Grid>
|
||||
</StackPanel>
|
||||
</GroupBox>
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
<UserControl x:Class="PLCSharp.VVMs.Vision.VisionFlowHandler.Algorithm.WeChatDecode"
|
||||
<UserControl x:Class="PLCSharp.VVMs.Vision.VisionFlowHandler.Algorithm.WeChatDecode"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
@ -32,7 +32,7 @@
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBlock Text="结果变量名" VerticalAlignment="Center" />
|
||||
<TextBox Grid.Column="1"
|
||||
Text="{Binding SelectVisionFlow.StringParams[ResultVarName], Mode=TwoWay, TargetNullValue=微信解码_Result, UpdateSourceTrigger=LostFocus}" />
|
||||
Text="{Binding SelectVisionFlow.StringParams[ResultVarName], Mode=TwoWay, =微信解码_Result, UpdateSourceTrigger=LostFocus}" />
|
||||
</Grid>
|
||||
</GroupBox>
|
||||
|
||||
|
||||
@ -12,6 +12,8 @@
|
||||
<StackPanel Margin="5">
|
||||
<GroupBox Header="标定">
|
||||
<StackPanel>
|
||||
<TextBlock Margin="5,5,5,0" Text="输入标定时设置的矩阵名称:" TextWrapping="Wrap" />
|
||||
<TextBox Margin="5" Text="{Binding SelectVisionFlow.StringParams[TransformMat], Mode=TwoWay}" />
|
||||
<Button Height="25" Margin="5" Command="{Binding CalibrateTransform}" Content="标定" />
|
||||
<Grid Margin="5">
|
||||
<Grid.RowDefinitions>
|
||||
@ -19,21 +21,24 @@
|
||||
<RowDefinition />
|
||||
<RowDefinition />
|
||||
<RowDefinition />
|
||||
<RowDefinition />
|
||||
</Grid.RowDefinitions>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="70" />
|
||||
<ColumnDefinition Width="*" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBlock Grid.Row="0" Text="行基准" VerticalAlignment="Center" ToolTip="第一行的世界Y坐标" />
|
||||
<TextBox Grid.Row="0" Grid.Column="1" Text="{Binding SelectVisionFlow.DoubleParams[CalibRowBase], Mode=TwoWay, TargetNullValue=0, UpdateSourceTrigger=LostFocus}" />
|
||||
<TextBox Grid.Row="0" Grid.Column="1" Text="{Binding SelectVisionFlow.DoubleParams[CalibRowBase], Mode=TwoWay, UpdateSourceTrigger=LostFocus}" />
|
||||
<TextBlock Grid.Row="1" Text="列基准" VerticalAlignment="Center" ToolTip="第一列的世界X坐标" />
|
||||
<TextBox Grid.Row="1" Grid.Column="1" Text="{Binding SelectVisionFlow.DoubleParams[CalibColBase], Mode=TwoWay, TargetNullValue=0, UpdateSourceTrigger=LostFocus}" />
|
||||
<TextBox Grid.Row="1" Grid.Column="1" Text="{Binding SelectVisionFlow.DoubleParams[CalibColBase], Mode=TwoWay, UpdateSourceTrigger=LostFocus}" />
|
||||
<TextBlock Grid.Row="2" Text="间距" VerticalAlignment="Center" ToolTip="相邻圆点的世界间距" />
|
||||
<TextBox Grid.Row="2" Grid.Column="1" Text="{Binding SelectVisionFlow.DoubleParams[CalibSpacing], Mode=TwoWay, TargetNullValue=5, UpdateSourceTrigger=LostFocus}" />
|
||||
<TextBox Grid.Row="2" Grid.Column="1" Text="{Binding SelectVisionFlow.DoubleParams[CalibSpacing], Mode=TwoWay, UpdateSourceTrigger=LostFocus}" />
|
||||
<TextBlock Grid.Row="3" Text="9点圆心数" VerticalAlignment="Center" />
|
||||
<TextBox Grid.Row="3" Grid.Column="1"
|
||||
Text="{Binding SelectedVisionFunction.Params.ResultDoubles[CalibDotCount], Mode=OneWay, TargetNullValue=—}"
|
||||
Text="{Binding SelectedVisionFunction.Params.ResultDoubles[CalibDotCount], Mode=OneWay}"
|
||||
IsReadOnly="True" Background="#FFF0F0F0" />
|
||||
|
||||
|
||||
</Grid>
|
||||
</StackPanel>
|
||||
</GroupBox>
|
||||
@ -48,36 +53,14 @@
|
||||
</StackPanel>
|
||||
</GroupBox>
|
||||
|
||||
<GroupBox Header="变换矩阵">
|
||||
<GroupBox>
|
||||
<StackPanel>
|
||||
<TextBlock Margin="5,5,5,0" Text="输入标定时设置的矩阵名称:" TextWrapping="Wrap" />
|
||||
<TextBox Margin="5" Text="{Binding SelectVisionFlow.StringParams[TransformMat], Mode=TwoWay, TargetNullValue=标定矩阵}" />
|
||||
|
||||
<TextBlock Grid.Row="2" Text="结果变量" VerticalAlignment="Center" />
|
||||
<TextBox Grid.Row="2" Grid.Column="1" Text="{Binding SelectVisionFlow.StringParams[OutputVar], Mode=TwoWay}" />
|
||||
</StackPanel>
|
||||
</GroupBox>
|
||||
|
||||
<GroupBox Header="转换结果(世界坐标)">
|
||||
<Grid Margin="5">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition />
|
||||
<RowDefinition />
|
||||
<RowDefinition />
|
||||
</Grid.RowDefinitions>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="80" />
|
||||
<ColumnDefinition Width="*" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBlock Grid.Row="0" Text="世界 X" VerticalAlignment="Center" />
|
||||
<TextBox Grid.Row="0" Grid.Column="1"
|
||||
Text="{Binding SelectedVisionFunction.Params.ResultDoubles[WorldX], Mode=OneWay}"
|
||||
IsReadOnly="True" Background="#FFF0F0F0" />
|
||||
<TextBlock Grid.Row="1" Text="世界 Y" VerticalAlignment="Center" />
|
||||
<TextBox Grid.Row="1" Grid.Column="1"
|
||||
Text="{Binding SelectedVisionFunction.Params.ResultDoubles[WorldY], Mode=OneWay}"
|
||||
IsReadOnly="True" Background="#FFF0F0F0" />
|
||||
<TextBlock Grid.Row="2" Text="结果变量" VerticalAlignment="Center" />
|
||||
<TextBox Grid.Row="2" Grid.Column="1" Text="{Binding SelectVisionFlow.StringParams[OutputVar], Mode=TwoWay, TargetNullValue=转换结果}" />
|
||||
</Grid>
|
||||
</GroupBox>
|
||||
</StackPanel>
|
||||
</ScrollViewer>
|
||||
</UserControl>
|
||||
|
||||
@ -65,7 +65,7 @@ namespace PLCSharp.VVMs.Vision.VisionFlowHandler.Processing
|
||||
|
||||
// 输出变量名
|
||||
if (!item.StringParams.TryGetValue("OutputVar", out var outName) || string.IsNullOrEmpty(outName))
|
||||
outName = "WorldPos";
|
||||
outName = "转换结果";
|
||||
|
||||
object resultValue = null;
|
||||
|
||||
@ -137,6 +137,7 @@ namespace PLCSharp.VVMs.Vision.VisionFlowHandler.Processing
|
||||
}
|
||||
else
|
||||
{
|
||||
outVar.VarType = variable.VarType;
|
||||
outVar.RawValue = resultValue;
|
||||
}
|
||||
|
||||
|
||||
@ -34,10 +34,10 @@
|
||||
<ColumnDefinition />
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBlock Text="裁剪限制" VerticalAlignment="Center" ToolTip="对比度限制,越大越强" />
|
||||
<TextBox Grid.Column="1" Text="{Binding SelectVisionFlow.DoubleParams[ClipLimit], Mode=TwoWay, TargetNullValue=2.0, UpdateSourceTrigger=LostFocus}" />
|
||||
<TextBox Grid.Column="1" Text="{Binding SelectVisionFlow.DoubleParams[ClipLimit], Mode=TwoWay, =2.0, UpdateSourceTrigger=LostFocus}" />
|
||||
|
||||
<TextBlock Grid.Row="1" Text="网格大小" VerticalAlignment="Center" ToolTip="CLAHE 分块大小 (px)" />
|
||||
<TextBox Grid.Row="1" Grid.Column="1" Text="{Binding SelectVisionFlow.IntParams[TileSize], Mode=TwoWay, TargetNullValue=8, UpdateSourceTrigger=LostFocus}" />
|
||||
<TextBox Grid.Row="1" Grid.Column="1" Text="{Binding SelectVisionFlow.IntParams[TileSize], Mode=TwoWay, =8, UpdateSourceTrigger=LostFocus}" />
|
||||
</Grid>
|
||||
</GroupBox>
|
||||
</StackPanel>
|
||||
|
||||
@ -22,7 +22,7 @@
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<TextBlock Text="角度" VerticalAlignment="Center" ToolTip="旋转角度(度),正数逆时针,负数顺时针" />
|
||||
<TextBox Grid.Column="1" Text="{Binding SelectVisionFlow.DoubleParams[RotateAngle], TargetNullValue=0, UpdateSourceTrigger=LostFocus}" />
|
||||
<TextBox Grid.Column="1" Text="{Binding SelectVisionFlow.DoubleParams[RotateAngle], =0, UpdateSourceTrigger=LostFocus}" />
|
||||
|
||||
<TextBlock Grid.Row="1" Text="尺寸模式" VerticalAlignment="Center" />
|
||||
<ComboBox Grid.Row="1" Grid.Column="1" SelectedIndex="{Binding SelectVisionFlow.IntParams[ResizeMode], Mode=TwoWay}">
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
<UserControl x:Class="PLCSharp.VVMs.Vision.VisionFlowHandler.Processing.ImageWarp"
|
||||
<UserControl x:Class="PLCSharp.VVMs.Vision.VisionFlowHandler.Processing.ImageWarp"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
@ -16,7 +16,7 @@
|
||||
<ColumnDefinition />
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBlock Text="矩阵变量名" VerticalAlignment="Center" ToolTip="从局部变量表中读取 String 类型的矩阵变量" />
|
||||
<TextBox Grid.Column="1" Text="{Binding SelectVisionFlow.StringParams[MatrixVar], Mode=TwoWay, TargetNullValue=SIFT匹配_矩阵, UpdateSourceTrigger=LostFocus}" />
|
||||
<TextBox Grid.Column="1" Text="{Binding SelectVisionFlow.StringParams[MatrixVar], Mode=TwoWay, =SIFT匹配_矩阵, UpdateSourceTrigger=LostFocus}" />
|
||||
</Grid>
|
||||
</GroupBox>
|
||||
</StackPanel>
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
<UserControl x:Class="PLCSharp.VVMs.Vision.VisionFlowHandler.Processing.ROICrop"
|
||||
<UserControl x:Class="PLCSharp.VVMs.Vision.VisionFlowHandler.Processing.ROICrop"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
@ -25,13 +25,13 @@
|
||||
<ColumnDefinition />
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBlock Margin="3,0" Text="Left" VerticalAlignment="Center" />
|
||||
<TextBox Grid.Column="1" Text="{Binding SelectVisionFlow.DoubleParams[ROILeft], TargetNullValue=—, UpdateSourceTrigger=LostFocus}" />
|
||||
<TextBox Grid.Column="1" Text="{Binding SelectVisionFlow.DoubleParams[ROILeft], UpdateSourceTrigger=LostFocus}" />
|
||||
<TextBlock Grid.Column="2" Margin="3,0" Text="Top" VerticalAlignment="Center" />
|
||||
<TextBox Grid.Column="3" Text="{Binding SelectVisionFlow.DoubleParams[ROITop], TargetNullValue=—, UpdateSourceTrigger=LostFocus}" />
|
||||
<TextBox Grid.Column="3" Text="{Binding SelectVisionFlow.DoubleParams[ROITop], UpdateSourceTrigger=LostFocus}" />
|
||||
<TextBlock Grid.Row="1" Margin="3,0" Text="Width" VerticalAlignment="Center" />
|
||||
<TextBox Grid.Row="1" Grid.Column="1" Text="{Binding SelectVisionFlow.DoubleParams[ROIWidth], TargetNullValue=—, UpdateSourceTrigger=LostFocus}" />
|
||||
<TextBox Grid.Row="1" Grid.Column="1" Text="{Binding SelectVisionFlow.DoubleParams[ROIWidth], UpdateSourceTrigger=LostFocus}" />
|
||||
<TextBlock Grid.Row="1" Grid.Column="2" Margin="3,0" Text="Height" VerticalAlignment="Center" />
|
||||
<TextBox Grid.Row="1" Grid.Column="3" Text="{Binding SelectVisionFlow.DoubleParams[ROIHeight], TargetNullValue=—, UpdateSourceTrigger=LostFocus}" />
|
||||
<TextBox Grid.Row="1" Grid.Column="3" Text="{Binding SelectVisionFlow.DoubleParams[ROIHeight], UpdateSourceTrigger=LostFocus}" />
|
||||
</Grid>
|
||||
</StackPanel>
|
||||
</GroupBox>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user