Click here to Skip to main content
15,889,884 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How can I do an image enhancement on these images?

I am doing coding in C#, EmguCV(OpenCV wrapper)

Potential Problem
1.Image is partially shaded
2.Image contains reflected image on the image
3.Image too dark or too bright The pic can be found in here

How I can remove each of these problem?

(Look at the signboard on the image)
http://img85.imageshack.us/img85/7826/reflectionshadowimages.png[^]
Posted
Updated 29-Sep-11 8:26am
v2

1 solution

Analyze the image and define a threshold. Then the values above are made black and the other pixels white (working in b/w is much more easy). You can also define filters for removing shades, little spots and other stuff unusable as good as possible. Multiple filters maybe possible. Look the internet with the term "computer vision"

Good luck!!!
 
Share this answer
 
Comments
xabixabi123 5-Jul-10 12:56pm    
How can define a threshold ?

so u mean to solve this problem just turn it into black and white images?
E.F. Nijboer 6-Jul-10 5:11am    
Yes. But it is of course the question what you want to do with it. But for a lot of enhancements b/w is used. It makes a stencil that can then be used to filter out certain stuff, like shades and reflections. These filtered image information can be discarded and therefore simply removed or could be filtered/adjusted as needed. It makes it possible to filter out the shadow only and adjust it in a way that it matches the non shadowed piece of the image as much as possible. The use of b/w is the most convenient because it's simply selecting what you want, and don't want. When using grayscales you would still be looking for the correct threshold. It's just helpfull to select out what you want to adjust and leave the rest intact. Perform operations and put it back. This ensures that the rest is untouched and also makes it possible to follow the different steps visually. Also, think about making stencils using different methods and the possibilities to perform operations like add, and, subtract and in this way use multiple stencils to filter just what you want in steps. By the way, use colorspaces that make the process easier. Like HSV and HSL are pretty handy.

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