using OpenCvSharp; using System.Windows.Media.Imaging; namespace OS.Spin.ViewModle.Flaw { public class MFlawSnapView : BasePropertyChanged { private string _flawName = string.Empty; public string FlawName { get { return _flawName; } set { _flawName = value; OnPropertyChanged("FlawName"); } } private string _score; public string Score { get { return _score; } set { _score = value; OnPropertyChanged("Score"); } } private string _id = string.Empty; public string Id { get { return _id; } set { _id = value; OnPropertyChanged("Id"); } } private double _centerX = 0; public double CenterX { get { return _centerX; } set { _centerX = value; OnPropertyChanged("CenterX"); } } private double _centerY = 0; public double CenterY { get { return _centerY; } set { _centerY = value; OnPropertyChanged("CenterY"); } } private BitmapSource _snapInfo = null; public BitmapSource SnapInfo { get { return _snapInfo; } set { _snapInfo = value; OnPropertyChanged("SnapInfo"); } } private Mat _snapMat; public Mat SnapMat { get { return _snapMat; } set { _snapMat = value; OnPropertyChanged("SnapMat"); } } } }