public Engine(Config config) { this.config = config; this.colorimeter = new Colorimeter(); this.xml = new Xml(this.config.ScriptName); if (!this.config.IsSimulation) { this.fixture = new Fixture(this.config.FixturePortName); //this.ca310Pipe = new Ca310Pipe(System.Windows.Forms.Application.StartupPath); IDevice intergrate = new IntegratingSphere(this.fixture, this.config.LCP3005PortName); DevManage.Instance.AddDevice(fixture); DevManage.Instance.AddDevice(intergrate); } dut = (DUT)Activator.CreateInstance(Type.GetType("DUTclass." + this.config.ProductType)); mode = (TestMode)Enum.Parse(typeof(TestMode), this.config.TestMode); ip = new imagingpipeline(); args = new DataChangeEventArgs(); tableArgs = new TableViewEventArgs(); tableArgs.Items = xml.Items; log = new Testlog(); SerialNumber = ""; if (!System.IO.Directory.Exists(IMAGE_SAVE_PATH)) { System.IO.Directory.CreateDirectory(IMAGE_SAVE_PATH); } }
public ColorimeterResult(Bitmap bitmap, ColorPanel panel) { this.m_bitmap = bitmap; this.m_panel = panel; m_pipeline = new imagingpipeline(); CIE1931xyY = new CIE1931Value(); }
public FlexCalibration(DUTclass.DUT dut, Colorimeter colorimeter, imagingpipeline pipe) { this.ReadProfile(); this.dut = dut; this.pipe = pipe; this.camera = colorimeter; FULLNAME = this.filepath + @"\RGB.txt"; this.PATH = this.filepath + @"\FlexCalibration\"; Directory.CreateDirectory(PATH); this.rgbList = new List <int[]>(); this.ReadRGBConfig(); }
public ColorimeterResult(Bitmap bitmap, Bitmap bitmapDisp) { this.m_bitmap = bitmap; this.m_bitmapDisp = bitmapDisp; m_pipeline = new imagingpipeline(); }