private void vCDCPUSingleFrameToolStripMenuItem_Click(object sender, EventArgs e) { DateTime tb; DateTime ta; PixelTypeCount count = new PixelTypeCount(); tb = DateTime.Now; this.pictureBox1.Image = libRaw.RawVcdCpuSingleFrame(count); ta = DateTime.Now; TimeSpan delta = ta.Subtract(tb); MessageBox.Show("Time required: " + delta.TotalMilliseconds + " ms, non edge pixels = " + count.NonEdgeCount); }
private void RawVcdCpuNoInterpolationBG(object sender, DoWorkEventArgs e) { DateTime tb = DateTime.Now; PixelTypeCount count = new PixelTypeCount(); Image result = libRaw.RawVcdCpuSingleFrame(count); BackgroundWorker bw = (BackgroundWorker)sender; InterpolationResult ir = new InterpolationResult(); ir.Image = result; ir.TimeStarted = tb; e.Result = ir; }