I'm looking for a way to identify if an image is blur in C#. I saw this post but I did not see the way to apply to my case.
I found the AForge.dll to apply the FFT to my Image. I'm looking for a simple way to determine if image is blurred or not (I'm not very confortable with mathematics).
There is my code :
Bitmap Picture;
// I'm working with images sized between 130x130 and 150x150
Bitmap tmp = new Bitmap(pictureFile);
// Crop to be 128x128
Bitmap cropped = cropBitmap(tmp, 128, 128);
using (MemoryStream ms = new MemoryStream())
{
cropped.Save(ms, ImageFormat.Gif);
ms.Position = 0;
// Save in grayscale
Picture = new Bitmap(ms);
}
// Create the ComplexImage with AForge.dll
ComplexImage output = ComplexImage.FromBitmap(Picture);
// Apply FFT
output.ForwardFourierTransform();
Bitmap result = output.ToBitmap();
// to be continued...