private void 二值化ToolStripMenuItem1_Click(object sender, EventArgs e) { if (getCurrentImage()) { var bm = new Bitmap(curBitmap); var t = Matlab.GetThreshold(bm); bm = Matlab.Thresh(bm, iw, ih, t); pictureBox.Refresh(); pictureBox.Image = bm; } }
private void 二值化ToolStripMenuItem1_Click(object sender, EventArgs e) { if (getCurrentImage()) { var bm = new Bitmap(curBitmap); var t = Matlab.GetThreshold(bm); bm = Matlab.Thresh(bm, iw, ih, t); pictureBox.Refresh(); pictureBox.Image = bm; } }