MFlawSnap.cs
1.45 KB
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
using OpenCvSharp;
using System.Windows.Media.Imaging;
namespace OS.Spin.Modle.BusinessLayer
{
public class MFlawSnap
{
private string _no = string.Empty;
public string No
{
get { return _no; }
set { _no = value; }
}
private string _flawName = string.Empty;
public string FlawName
{
get { return _flawName; }
set { _flawName = value; }
}
//private int _meter = 0;
//public int Meter
//{
// get { return _meter; }
// set { _meter = value; }
//}
private double _centerX = 0;
public double CenterX
{
get { return _centerX; }
set { _centerX = value; }
}
private double _centerY = 0;
public double CenterY
{
get { return _centerY; }
set { _centerY = value; }
}
//private BitmapSource _snapInfo = null;
public BitmapSource SnapInfo
{
get {
return OS.Spin.Common.UserConvert.Mat2BitmapSource(_snapMat); }
//set { _snapInfo = value; }
}
private Mat _snapMat;
public Mat SnapMat
{
get { return _snapMat; }
set
{
_snapMat = value;
//_snapInfo = OS.Spin.Common.UserConvert.Mat2BitmapSource(_snapMat);
}
}
}
}