Solved

Possible? Find blurry images

Posted on 2006-07-01
6
174 Views
Last Modified: 2010-04-05
I need to look over 1000s of jpegs and remove blurry ones. Is it possible to make something that will make a best guess as to weather a pic is blurry or not?

I have seen video programs that try to grab the best frame from the video... Not sure how they do that but this would kinda be the same. Maybe a slider as a blurryness gauge would be cool. I just don't know enough about jpeg formats or even how you would decide if its blurry.

500 points because I think this would be kinda hard and I really need it.
0
Comment
Question by:imnoto
  • 2
6 Comments
 
LVL 28

Expert Comment

by:2266180
ID: 17026243
unfortunatly this is absolutely not delphi related. This is all image processing. You can ask in community support to move the question to web development or game development some other area that deals with image processing and put some pointer questions in the other TA's that deal with image processing.
0
 

Author Comment

by:imnoto
ID: 17028368
I'm not sure how it would be better in web development or game development considering I want it programmed in delphi... But, if the mods want it moved they can move it.
0
 
LVL 28

Expert Comment

by:2266180
ID: 17029815
well ... then yo can leave it here if you think but this is first of all an image processing issue, which is the same in any programming language.

so you need to find out first what are the characteristics of a blury image and what algorithms can you use. after that, porting to delphi is a piece of cake.
0
 
LVL 17

Accepted Solution

by:
mokule earned 500 total points
ID: 17039652
Well, it depends what kind of blur you're expecting
It is possible to have blur in one direction or in both.
You can have blur in some regions or in a whole image.

First You should convert jpeg to bmp.
You need to establish some color difference measure between two pixels.
Quite good measure is (R1-R2)*(R1-R2) + (G1-G2)*(G1-G2)+(B1-B2)*(B1-B2), but simpler and good enough is also
Abs(R1-R2) + Abs(G1-G2) + Abs(B1-B2)

Now imagine horizontal line in the middle of the image.
Find the maximum color difference on this line between two side by side pixels or maybe with distance 1, 2 or 3 (some experiment is needed)

If this maximum is big enough the image in this direction is sharp.
Else try some other line higher or lower

if You couldn't find the line with big enough maximum color difference the image is blurred.

What is big enough maximum You can set after sme try and fail
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Mydac connection data base issue 3 157
Internet Explorer View Settings Question 15 111
Dynamically Created Query 3 55
DBGrid or StringGrid ? 6 89
This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question