Click here to Skip to main content
15,992,983 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
as far i explore i am able to find how to blur an image.
not able to find how to detect blur image.

my requirement is when scanning some images got blurred due to scanning problem.
i have to find that image.

What I have tried:

i have tried with these tools opencv,clearimage,imagemagik,emgu.cv but not able to find the correct way.
C#
private static void GetBlur(string imgfile)
        {
            using (var img = new Image<Gray, byte>(imgfile))
            {
                using (var gray_image = img.Convert<Gray, short>())
                {
                    short maxLap = -32767;
                    foreach (var myByte in gray_image.Data)
                    {
                        if (myByte > maxLap)
                            maxLap = myByte;
                    }
                }
            }
        }

        private static void Blur(Bitmap image)
        {
            Image<Gray, byte> My_Image = new Image<Gray, byte>(image);
            Image<Gray, double> gray_image = My_Image.Convert<Gray, double>();
            //Gray Image
            var my_intensity = gray_image.Data[0, 0, 0];
        }


please suggest me a right way to do.
Posted
Updated 31-Jan-19 21:27pm
v2

1 solution

Here is an example using OpenCv: C# Identify blur image with FFT - Stack Overflow[^]
 
Share this answer
 
Comments
Lipiranjeeta 1-Feb-19 5:55am    
Thank you RickZeeland

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900