I need to do some thresholding for my image. The threshold filter function just accepts 8-16bpp grayscale. My bitmap picture has the 32bppRGB pixelformat. Please suggest some code for the same. (I also want to know if it is possible without pixel by pixel operations)
p.s. I am using the Aforge.NET for thresholding.
Thanks
-Sagar
Use AForge.NET framework Grayscale filter
Then apply threshold filter.
Easiest way:
Faster way:
Fastest way: