MFlawSnap.cs 1.45 KB
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);
            }
        }
    }
}