// add filters to the sequence filter2.Add(new AForge.Imaging.Filters.Grayscale(0.300, 0.580, 0.2)); filter2.Add(new AForge.Imaging.Filters.OtsuThreshold()); // apply the filter sequence UnmanagedImage iu = new UnmanagedImage(idata); UnmanagedImage temp = filter2.Apply(iu); System.Drawing.Image i2 = temp.ToManagedImage(); // show image pictureBox1.Image = i2; pictureBox1.Size = i2.Size; iu.Dispose();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)