Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
AccAOI
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit fe992407
由
LN
编写于
2019-06-18 10:17:34 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
修改界面
1 个父辈
b94db01c
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
140 行增加
和
54 行删除
AccAOI/FrmAoiSetting.cs
AccAOI/control/ABaseControl.cs
AccAOI/control/AoiBlobControl.cs
AccAOI/control/AoiRgbControl.Designer.cs
AccAOI/control/AoiRgbControl.cs
dll/Asa.Theme.dll
AccAOI/FrmAoiSetting.cs
查看文件 @
fe99240
...
@@ -176,7 +176,7 @@ namespace AccAOI
...
@@ -176,7 +176,7 @@ namespace AccAOI
aoiControl
.
FormBorderStyle
=
FormBorderStyle
.
None
;
aoiControl
.
FormBorderStyle
=
FormBorderStyle
.
None
;
aoiControl
.
StartPosition
=
FormStartPosition
.
CenterParent
;
aoiControl
.
StartPosition
=
FormStartPosition
.
CenterParent
;
aoiControl
.
Location
=
new
Point
(
0
,
0
);
aoiControl
.
Location
=
new
Point
(
0
,
0
);
aoiControl
.
SetImageBox
(
this
.
imageBox1
)
;
aoiControl
.
BImageBox
=
this
.
imageBox1
;
aoiControl
.
AoiInfo
=
method
;
aoiControl
.
AoiInfo
=
method
;
aoiControl
.
Size
=
panAoi
.
Size
;
aoiControl
.
Size
=
panAoi
.
Size
;
aoiControl
.
TitleName
=
method
.
MethodName
;
aoiControl
.
TitleName
=
method
.
MethodName
;
...
@@ -193,7 +193,7 @@ namespace AccAOI
...
@@ -193,7 +193,7 @@ namespace AccAOI
cutImage
=
threshImage
;
cutImage
=
threshImage
;
aoiControl
.
currPath
=
currPath
;
aoiControl
.
currPath
=
currPath
;
aoiControl
.
aoiImage
.
Image
=
threshImage
;
aoiControl
.
SetImage
(
threshImage
)
;
}
}
}
}
private
void
SaveCurrAoi
()
private
void
SaveCurrAoi
()
...
@@ -287,7 +287,7 @@ namespace AccAOI
...
@@ -287,7 +287,7 @@ namespace AccAOI
cutImage
=
threshImage
;
cutImage
=
threshImage
;
aoiControl
.
currPath
=
currPath
;
aoiControl
.
currPath
=
currPath
;
aoiControl
.
aoiImage
.
Image
=
threshImage
;
aoiControl
.
SetImage
(
threshImage
)
;
}
catch
(
Exception
ex
)
}
catch
(
Exception
ex
)
{
{
...
...
AccAOI/control/ABaseControl.cs
查看文件 @
fe99240
...
@@ -32,19 +32,15 @@ namespace AccAOI.control
...
@@ -32,19 +32,15 @@ namespace AccAOI.control
/// 区域信息
/// 区域信息
/// </summary>
/// </summary>
public
GraphicsPath
currPath
=
null
;
public
GraphicsPath
currPath
=
null
;
internal
ImageBoxEx
BImageBox
;
public
ImageBoxEx
BImageBox
;
public
AoiMethod
AoiInfo
;
internal
AoiMethod
AoiInfo
;
protected
Image
BaseImage
=
null
;
public
void
SetImage
Box
(
ImageBoxEx
box
)
public
void
SetImage
(
Image
image
)
{
{
this
.
BImageBox
=
box
;
this
.
aoiImage
.
Image
=
image
;
BaseImage
=
image
;
}
}
public
void
SeetAoiInfo
(
AoiMethod
aoi
)
{
this
.
AoiInfo
=
aoi
;
}
public
virtual
void
ShowAoiInfo
()
public
virtual
void
ShowAoiInfo
()
{
{
...
...
AccAOI/control/AoiBlobControl.cs
查看文件 @
fe99240
...
@@ -23,26 +23,26 @@ namespace AccAOI.control
...
@@ -23,26 +23,26 @@ namespace AccAOI.control
int
value
=
trackBarThresh
.
Value
;
int
value
=
trackBarThresh
.
Value
;
lblthresh
.
Text
=
value
.
ToString
();
lblthresh
.
Text
=
value
.
ToString
();
}
}
private
AoiBlobMethod
MethodBlob
=
null
;
public
override
void
ShowAoiInfo
()
public
override
void
ShowAoiInfo
()
{
{
if
(
this
.
AoiInfo
is
AoiBlobMethod
)
if
(
this
.
AoiInfo
is
AoiBlobMethod
)
{
{
AoiBlobMethod
aInfo
=
(
AoiBlobMethod
)
AoiInfo
;
MethodBlob
=
(
AoiBlobMethod
)
AoiInfo
;
if
(
aInfo
.
thresh
<
0
)
if
(
MethodBlob
.
thresh
<
0
)
{
{
trackBarThresh
.
Value
=
0
;
trackBarThresh
.
Value
=
0
;
}
}
else
else
{
{
trackBarThresh
.
Value
=
aInfo
.
thresh
;
trackBarThresh
.
Value
=
MethodBlob
.
thresh
;
}
}
chkwhiteOnBlack
.
Checked
=
aInfo
.
whiteOnBlack
;
chkwhiteOnBlack
.
Checked
=
MethodBlob
.
whiteOnBlack
;
txtmaxArea
.
Text
=
aInfo
.
maxArea
.
ToString
();
txtmaxArea
.
Text
=
MethodBlob
.
maxArea
.
ToString
();
txtminArea
.
Text
=
aInfo
.
minArea
.
ToString
();
txtminArea
.
Text
=
MethodBlob
.
minArea
.
ToString
();
txtmaxNum
.
Text
=
aInfo
.
maxNum
.
ToString
();
txtmaxNum
.
Text
=
MethodBlob
.
maxNum
.
ToString
();
txtminNum
.
Text
=
aInfo
.
minNum
.
ToString
();
txtminNum
.
Text
=
MethodBlob
.
minNum
.
ToString
();
}
}
}
}
...
@@ -50,27 +50,39 @@ namespace AccAOI.control
...
@@ -50,27 +50,39 @@ namespace AccAOI.control
{
{
if
(
this
.
AoiInfo
is
AoiBlobMethod
)
if
(
this
.
AoiInfo
is
AoiBlobMethod
)
{
{
AoiBlobMethod
aInfo
=
(
AoiBlobMethod
)
AoiInfo
;
MethodBlob
=
(
AoiBlobMethod
)
AoiInfo
;
if
(
trackBarThresh
.
Value
.
Equals
(
0
))
if
(
trackBarThresh
.
Value
.
Equals
(
0
))
{
{
aInfo
.
thresh
=
-
1
;
MethodBlob
.
thresh
=
-
1
;
}
}
else
else
{
{
aInfo
.
thresh
=
trackBarThresh
.
Value
;
MethodBlob
.
thresh
=
trackBarThresh
.
Value
;
}
}
aInfo
.
whiteOnBlack
=
chkwhiteOnBlack
.
Checked
;
MethodBlob
.
whiteOnBlack
=
chkwhiteOnBlack
.
Checked
;
aInfo
.
maxArea
=
FormUtil
.
GetIntValue
(
txtmaxArea
);
MethodBlob
.
maxArea
=
FormUtil
.
GetIntValue
(
txtmaxArea
);
aInfo
.
minArea
=
FormUtil
.
GetIntValue
(
txtminArea
);
MethodBlob
.
minArea
=
FormUtil
.
GetIntValue
(
txtminArea
);
aInfo
.
maxNum
=
FormUtil
.
GetIntValue
(
txtmaxNum
);
MethodBlob
.
maxNum
=
FormUtil
.
GetIntValue
(
txtmaxNum
);
aInfo
.
minNum
=
FormUtil
.
GetIntValue
(
txtminNum
);
MethodBlob
.
minNum
=
FormUtil
.
GetIntValue
(
txtminNum
);
if
(
currPath
!=
null
)
if
(
currPath
!=
null
)
{
{
aInfo
.
RoiPath
=
currPath
;
MethodBlob
.
RoiPath
=
currPath
;
}
}
AoiInfo
=
MethodBlob
;
}
}
return
AoiInfo
;
return
AoiInfo
;
}
}
private
void
UpdateImage
()
{
GetAoiInfo
();
Image
outImage
=
null
;
//List<CvBlob> list = new List<CvBlob>();
//float blob = MethodBlob.GetBlobNum(BaseImage, out outImage,out list);
//txtRate.Text = rate.ToString();
this
.
aoiImage
.
Image
=
outImage
;
}
}
}
}
}
AccAOI/control/AoiRgbControl.Designer.cs
查看文件 @
fe99240
...
@@ -44,15 +44,18 @@
...
@@ -44,15 +44,18 @@
this
.
txtMaxB
=
new
Asa
.
Theme
.
FlatText
();
this
.
txtMaxB
=
new
Asa
.
Theme
.
FlatText
();
this
.
txtMinB
=
new
Asa
.
Theme
.
FlatText
();
this
.
txtMinB
=
new
Asa
.
Theme
.
FlatText
();
this
.
flatLabel8
=
new
Asa
.
Theme
.
FlatLabel
();
this
.
flatLabel8
=
new
Asa
.
Theme
.
FlatLabel
();
this
.
txtRate
=
new
Asa
.
Theme
.
FlatText
();
this
.
flatLabel9
=
new
Asa
.
Theme
.
FlatLabel
();
this
.
btnUpdate
=
new
Asa
.
Theme
.
FlatButton
();
this
.
SuspendLayout
();
this
.
SuspendLayout
();
//
//
// panParam
// panParam
//
//
this
.
panParam
.
Size
=
new
System
.
Drawing
.
Size
(
29
1
,
166
);
this
.
panParam
.
Size
=
new
System
.
Drawing
.
Size
(
29
8
,
166
);
//
//
// panResult
// panResult
//
//
this
.
panResult
.
Size
=
new
System
.
Drawing
.
Size
(
29
1
,
189
);
this
.
panResult
.
Size
=
new
System
.
Drawing
.
Size
(
29
8
,
189
);
//
//
// flatLabel5
// flatLabel5
//
//
...
@@ -110,6 +113,7 @@
...
@@ -110,6 +113,7 @@
this
.
txtMaxR
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
3
);
this
.
txtMaxR
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
3
);
this
.
txtMaxR
.
Size
=
new
System
.
Drawing
.
Size
(
74
,
30
);
this
.
txtMaxR
.
Size
=
new
System
.
Drawing
.
Size
(
74
,
30
);
this
.
txtMaxR
.
TabIndex
=
26
;
this
.
txtMaxR
.
TabIndex
=
26
;
this
.
txtMaxR
.
TextChanged
+=
new
System
.
EventHandler
(
this
.
txtMinR_TextChanged
);
//
//
// txtMinR
// txtMinR
//
//
...
@@ -120,6 +124,7 @@
...
@@ -120,6 +124,7 @@
this
.
txtMinR
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
3
);
this
.
txtMinR
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
3
);
this
.
txtMinR
.
Size
=
new
System
.
Drawing
.
Size
(
74
,
30
);
this
.
txtMinR
.
Size
=
new
System
.
Drawing
.
Size
(
74
,
30
);
this
.
txtMinR
.
TabIndex
=
25
;
this
.
txtMinR
.
TabIndex
=
25
;
this
.
txtMinR
.
TextChanged
+=
new
System
.
EventHandler
(
this
.
txtMinR_TextChanged
);
//
//
// flatLabel2
// flatLabel2
//
//
...
@@ -148,6 +153,7 @@
...
@@ -148,6 +153,7 @@
this
.
txtMaxG
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
3
);
this
.
txtMaxG
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
3
);
this
.
txtMaxG
.
Size
=
new
System
.
Drawing
.
Size
(
74
,
30
);
this
.
txtMaxG
.
Size
=
new
System
.
Drawing
.
Size
(
74
,
30
);
this
.
txtMaxG
.
TabIndex
=
30
;
this
.
txtMaxG
.
TabIndex
=
30
;
this
.
txtMaxG
.
TextChanged
+=
new
System
.
EventHandler
(
this
.
txtMinR_TextChanged
);
//
//
// txtMinG
// txtMinG
//
//
...
@@ -158,6 +164,7 @@
...
@@ -158,6 +164,7 @@
this
.
txtMinG
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
3
);
this
.
txtMinG
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
3
);
this
.
txtMinG
.
Size
=
new
System
.
Drawing
.
Size
(
74
,
30
);
this
.
txtMinG
.
Size
=
new
System
.
Drawing
.
Size
(
74
,
30
);
this
.
txtMinG
.
TabIndex
=
29
;
this
.
txtMinG
.
TabIndex
=
29
;
this
.
txtMinG
.
TextChanged
+=
new
System
.
EventHandler
(
this
.
txtMinR_TextChanged
);
//
//
// flatLabel6
// flatLabel6
//
//
...
@@ -186,6 +193,7 @@
...
@@ -186,6 +193,7 @@
this
.
txtMaxB
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
3
);
this
.
txtMaxB
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
3
);
this
.
txtMaxB
.
Size
=
new
System
.
Drawing
.
Size
(
74
,
30
);
this
.
txtMaxB
.
Size
=
new
System
.
Drawing
.
Size
(
74
,
30
);
this
.
txtMaxB
.
TabIndex
=
34
;
this
.
txtMaxB
.
TabIndex
=
34
;
this
.
txtMaxB
.
TextChanged
+=
new
System
.
EventHandler
(
this
.
txtMinR_TextChanged
);
//
//
// txtMinB
// txtMinB
//
//
...
@@ -196,6 +204,7 @@
...
@@ -196,6 +204,7 @@
this
.
txtMinB
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
3
);
this
.
txtMinB
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
3
);
this
.
txtMinB
.
Size
=
new
System
.
Drawing
.
Size
(
74
,
30
);
this
.
txtMinB
.
Size
=
new
System
.
Drawing
.
Size
(
74
,
30
);
this
.
txtMinB
.
TabIndex
=
33
;
this
.
txtMinB
.
TabIndex
=
33
;
this
.
txtMinB
.
TextChanged
+=
new
System
.
EventHandler
(
this
.
txtMinR_TextChanged
);
//
//
// flatLabel8
// flatLabel8
//
//
...
@@ -206,11 +215,46 @@
...
@@ -206,11 +215,46 @@
this
.
flatLabel8
.
TabIndex
=
32
;
this
.
flatLabel8
.
TabIndex
=
32
;
this
.
flatLabel8
.
Text
=
"B:"
;
this
.
flatLabel8
.
Text
=
"B:"
;
//
//
// txtRate
//
this
.
txtRate
.
Enabled
=
false
;
this
.
txtRate
.
Font
=
new
System
.
Drawing
.
Font
(
"宋体"
,
9F
);
this
.
txtRate
.
Inside
=
false
;
this
.
txtRate
.
Location
=
new
System
.
Drawing
.
Point
(
108
,
577
);
this
.
txtRate
.
Name
=
"txtRate"
;
this
.
txtRate
.
Padding
=
new
System
.
Windows
.
Forms
.
Padding
(
3
);
this
.
txtRate
.
Size
=
new
System
.
Drawing
.
Size
(
74
,
30
);
this
.
txtRate
.
TabIndex
=
36
;
//
// flatLabel9
//
this
.
flatLabel9
.
Inside
=
false
;
this
.
flatLabel9
.
Location
=
new
System
.
Drawing
.
Point
(
19
,
577
);
this
.
flatLabel9
.
Name
=
"flatLabel9"
;
this
.
flatLabel9
.
Size
=
new
System
.
Drawing
.
Size
(
83
,
30
);
this
.
flatLabel9
.
TabIndex
=
37
;
this
.
flatLabel9
.
Text
=
"像素实时占比:"
;
//
// btnUpdate
//
this
.
btnUpdate
.
ImageSize
=
new
System
.
Drawing
.
Size
(
0
,
0
);
this
.
btnUpdate
.
Inside
=
false
;
this
.
btnUpdate
.
Location
=
new
System
.
Drawing
.
Point
(
204
,
577
);
this
.
btnUpdate
.
Name
=
"btnUpdate"
;
this
.
btnUpdate
.
Size
=
new
System
.
Drawing
.
Size
(
90
,
30
);
this
.
btnUpdate
.
StateColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
30
)))),
((
int
)(((
byte
)(
30
)))),
((
int
)(((
byte
)(
30
)))));
this
.
btnUpdate
.
TabIndex
=
38
;
this
.
btnUpdate
.
Text
=
"更新"
;
this
.
btnUpdate
.
Click
+=
new
System
.
EventHandler
(
this
.
btnUpdate_Click
);
//
// AoiRgbControl
// AoiRgbControl
//
//
this
.
AutoScaleDimensions
=
new
System
.
Drawing
.
SizeF
(
6F
,
12F
);
this
.
AutoScaleDimensions
=
new
System
.
Drawing
.
SizeF
(
6F
,
12F
);
this
.
AutoScaleMode
=
System
.
Windows
.
Forms
.
AutoScaleMode
.
Font
;
this
.
AutoScaleMode
=
System
.
Windows
.
Forms
.
AutoScaleMode
.
Font
;
this
.
ClientSize
=
new
System
.
Drawing
.
Size
(
312
,
700
);
this
.
ClientSize
=
new
System
.
Drawing
.
Size
(
312
,
700
);
this
.
Controls
.
Add
(
this
.
btnUpdate
);
this
.
Controls
.
Add
(
this
.
flatLabel9
);
this
.
Controls
.
Add
(
this
.
txtRate
);
this
.
Controls
.
Add
(
this
.
flatLabel7
);
this
.
Controls
.
Add
(
this
.
flatLabel7
);
this
.
Controls
.
Add
(
this
.
txtMaxB
);
this
.
Controls
.
Add
(
this
.
txtMaxB
);
this
.
Controls
.
Add
(
this
.
txtMinB
);
this
.
Controls
.
Add
(
this
.
txtMinB
);
...
@@ -229,6 +273,7 @@
...
@@ -229,6 +273,7 @@
this
.
Controls
.
Add
(
this
.
flatLabel3
);
this
.
Controls
.
Add
(
this
.
flatLabel3
);
this
.
Name
=
"AoiRgbControl"
;
this
.
Name
=
"AoiRgbControl"
;
this
.
TitleName
=
"颜色抽取"
;
this
.
TitleName
=
"颜色抽取"
;
this
.
Controls
.
SetChildIndex
(
this
.
aoiImage
,
0
);
this
.
Controls
.
SetChildIndex
(
this
.
panParam
,
0
);
this
.
Controls
.
SetChildIndex
(
this
.
panParam
,
0
);
this
.
Controls
.
SetChildIndex
(
this
.
panResult
,
0
);
this
.
Controls
.
SetChildIndex
(
this
.
panResult
,
0
);
this
.
Controls
.
SetChildIndex
(
this
.
flatLabel3
,
0
);
this
.
Controls
.
SetChildIndex
(
this
.
flatLabel3
,
0
);
...
@@ -247,6 +292,9 @@
...
@@ -247,6 +292,9 @@
this
.
Controls
.
SetChildIndex
(
this
.
txtMinB
,
0
);
this
.
Controls
.
SetChildIndex
(
this
.
txtMinB
,
0
);
this
.
Controls
.
SetChildIndex
(
this
.
txtMaxB
,
0
);
this
.
Controls
.
SetChildIndex
(
this
.
txtMaxB
,
0
);
this
.
Controls
.
SetChildIndex
(
this
.
flatLabel7
,
0
);
this
.
Controls
.
SetChildIndex
(
this
.
flatLabel7
,
0
);
this
.
Controls
.
SetChildIndex
(
this
.
txtRate
,
0
);
this
.
Controls
.
SetChildIndex
(
this
.
flatLabel9
,
0
);
this
.
Controls
.
SetChildIndex
(
this
.
btnUpdate
,
0
);
this
.
ResumeLayout
(
false
);
this
.
ResumeLayout
(
false
);
}
}
...
@@ -269,5 +317,8 @@
...
@@ -269,5 +317,8 @@
private
Asa
.
Theme
.
FlatText
txtMaxB
;
private
Asa
.
Theme
.
FlatText
txtMaxB
;
private
Asa
.
Theme
.
FlatText
txtMinB
;
private
Asa
.
Theme
.
FlatText
txtMinB
;
private
Asa
.
Theme
.
FlatLabel
flatLabel8
;
private
Asa
.
Theme
.
FlatLabel
flatLabel8
;
private
Asa
.
Theme
.
FlatText
txtRate
;
private
Asa
.
Theme
.
FlatLabel
flatLabel9
;
private
Asa
.
Theme
.
FlatButton
btnUpdate
;
}
}
}
}
AccAOI/control/AoiRgbControl.cs
查看文件 @
fe99240
...
@@ -17,19 +17,20 @@ namespace AccAOI.control
...
@@ -17,19 +17,20 @@ namespace AccAOI.control
{
{
InitializeComponent
();
InitializeComponent
();
}
}
private
AoiMethodRgb
methodRgb
=
null
;
public
override
void
ShowAoiInfo
()
public
override
void
ShowAoiInfo
()
{
{
if
(
this
.
AoiInfo
is
AoiMethodRgb
)
if
(
this
.
AoiInfo
is
AoiMethodRgb
)
{
{
AoiMethodRgb
aInfo
=
(
AoiMethodRgb
)
AoiInfo
;
methodRgb
=
(
AoiMethodRgb
)
AoiInfo
;
txtMinR
.
Text
=
aInfo
.
minR
.
ToString
();
txtMinR
.
Text
=
methodRgb
.
minR
.
ToString
();
txtMaxR
.
Text
=
aInfo
.
maxR
.
ToString
();
txtMaxR
.
Text
=
methodRgb
.
maxR
.
ToString
();
txtMinG
.
Text
=
aInfo
.
minG
.
ToString
();
txtMinG
.
Text
=
methodRgb
.
minG
.
ToString
();
txtMaxG
.
Text
=
aInfo
.
maxG
.
ToString
();
txtMaxG
.
Text
=
methodRgb
.
maxG
.
ToString
();
txtMaxB
.
Text
=
aInfo
.
maxB
.
ToString
();
txtMaxB
.
Text
=
methodRgb
.
maxB
.
ToString
();
txtMinB
.
Text
=
aInfo
.
minB
.
ToString
();
txtMinB
.
Text
=
methodRgb
.
minB
.
ToString
();
txtminRate
.
Text
=
aInfo
.
minRate
.
ToString
();
txtminRate
.
Text
=
methodRgb
.
minRate
.
ToString
();
txtmaxRate
.
Text
=
aInfo
.
maxRate
.
ToString
();
txtmaxRate
.
Text
=
methodRgb
.
maxRate
.
ToString
();
}
}
}
}
...
@@ -37,22 +38,48 @@ namespace AccAOI.control
...
@@ -37,22 +38,48 @@ namespace AccAOI.control
{
{
if
(
this
.
AoiInfo
is
AoiMethodRgb
)
if
(
this
.
AoiInfo
is
AoiMethodRgb
)
{
{
AoiMethodRgb
aInfo
=
(
AoiMethodRgb
)
AoiInfo
;
methodRgb
=
(
AoiMethodRgb
)
AoiInfo
;
aInfo
.
minR
=
FormUtil
.
GetIntValue
(
txtMinR
);
methodRgb
.
minR
=
FormUtil
.
GetIntValue
(
txtMinR
);
aInfo
.
maxR
=
FormUtil
.
GetIntValue
(
txtMaxR
);
methodRgb
.
maxR
=
FormUtil
.
GetIntValue
(
txtMaxR
);
aInfo
.
minG
=
FormUtil
.
GetIntValue
(
txtMinG
);
methodRgb
.
minG
=
FormUtil
.
GetIntValue
(
txtMinG
);
aInfo
.
maxG
=
FormUtil
.
GetIntValue
(
txtMaxG
);
methodRgb
.
maxG
=
FormUtil
.
GetIntValue
(
txtMaxG
);
aInfo
.
maxB
=
FormUtil
.
GetIntValue
(
txtMaxB
);
methodRgb
.
maxB
=
FormUtil
.
GetIntValue
(
txtMaxB
);
aInfo
.
minB
=
FormUtil
.
GetIntValue
(
txtMinB
);
methodRgb
.
minB
=
FormUtil
.
GetIntValue
(
txtMinB
);
aInfo
.
minRate
=
FormUtil
.
GetIntValue
(
txtminRate
);
methodRgb
.
minRate
=
FormUtil
.
GetIntValue
(
txtminRate
);
aInfo
.
maxRate
=
FormUtil
.
GetIntValue
(
txtmaxRate
);
methodRgb
.
maxRate
=
FormUtil
.
GetIntValue
(
txtmaxRate
);
if
(
currPath
!=
null
)
if
(
currPath
!=
null
)
{
{
aInfo
.
RoiPath
=
currPath
;
methodRgb
.
RoiPath
=
currPath
;
}
}
AoiInfo
=
methodRgb
;
}
}
return
AoiInfo
;
return
AoiInfo
;
}
}
private
void
UpdateImage
()
{
GetAoiInfo
();
Image
outImage
=
null
;
float
rate
=
methodRgb
.
GetRate
(
BaseImage
,
out
outImage
);
if
(
double
.
IsNaN
(
rate
))
{
return
;
}
txtRate
.
Text
=
rate
.
ToString
();
this
.
aoiImage
.
Image
=
outImage
;
}
private
void
btnUpdate_Click
(
object
sender
,
EventArgs
e
)
{
UpdateImage
();
}
private
void
txtMinR_TextChanged
(
object
sender
,
EventArgs
e
)
{
UpdateImage
();
}
}
}
}
}
dll/Asa.Theme.dll
查看文件 @
fe99240
此文件类型无法预览
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论