CLAHE by AForge
// Clac CLAHE ----------------------------------------------------
private void button7_Click(object sender, EventArgs e)
{
Bitmap img1 = (Bitmap)pictureBox1.Image;
// create filter
HistogramEqualization filter = new HistogramEqualization();
// process image
filter.ApplyInPlace(img1);
pictureBox2.Image = img1;
}
// pictureBox click ------------------------------------------------
private void pictureBox1_Click(object sender, EventArgs e)
{
pictureBox1.Image = (Bitmap)System.Drawing.Image.FromFile(
@"c:/Users/user/Pictures/7.bmp");
}
private void button7_Click(object sender, EventArgs e)
{
Bitmap img1 = (Bitmap)pictureBox1.Image;
// create filter
HistogramEqualization filter = new HistogramEqualization();
// process image
filter.ApplyInPlace(img1);
pictureBox2.Image = img1;
}
// pictureBox click ------------------------------------------------
private void pictureBox1_Click(object sender, EventArgs e)
{
pictureBox1.Image = (Bitmap)System.Drawing.Image.FromFile(
@"c:/Users/user/Pictures/7.bmp");
}
댓글
댓글 쓰기