private void MedianBtn_Click(object sender, EventArgs e) { Bitmap orgPic = new Bitmap(this.pictureBox1.Image); // -> O(1) Bitmap tmpPic = new Bitmap(this.pictureBox1.Image); // -> O(1) int Factor = (int)MedianNum.Value; // -> O(1) MedianFilter.Median_Filter(orgPic, Factor, ref tmpPic); // [-> O(N Log N))] pictureBox2.Image = tmpPic; // -> O(1) }
private void MedianBtn_Click(object sender, EventArgs e) { Bitmap orgPic = new Bitmap(this.Preimage.Image); // -> O(1) Bitmap tmpPic = new Bitmap(this.Preimage.Image); // -> O(1) int Factor = (int)factor.Value; // -> O(1) MedianFilter.Median_Filter(orgPic, Factor, ref tmpPic); // [-> O(N Log N))] PostImage.Image = tmpPic; // -> O(1) }