Normalizing/leveling multiple images
Posted: 2008-07-08T08:04:18-07:00
I have the following issue, and I believe ImageMagick is the right tool for this job, but it's taking a little more time than I hoped.
I have a number of pictures of wine bottles (about fifty). They were taken in a small improvised worse-than-amateur studio (meaning a white table and canvas background), but we forgot to turn off the auto contrast/brightness/stuff on the digital camera. So now, when flipping through these images, they swap from light to dark. They're all good quality, and look fine individually, but when viewed as a whole (which is their main purpose) they're fugly.
So what I'm trying to explain here is: I need a way to get an average of brightness and contrast of each picture and then make every picture comply to this, so that the color of the backdrop is hopefully less distorted. Of course the problem is that the wine bottles have different colors, so there will always be a little distortion, but they only take up like 20/30% of the image.
Is this at all feasible? Or will taking the pictures again be faster than solving this with my very limited unix and convert/mogrify skillz...
Thanks for your help in advance.
If it is helpful, here is a sample of two very distorted images (you might need to copy paste the links because hotlinking is disabled).
The Distortion:
http://img.waffleimages.com/e6c240110f7 ... ortion.jpg
The originals:
http://img.waffleimages.com/ec18374ae7e ... /out-0.jpg
http://img.waffleimages.com/e242f33c752 ... /out-1.jpg
I have a number of pictures of wine bottles (about fifty). They were taken in a small improvised worse-than-amateur studio (meaning a white table and canvas background), but we forgot to turn off the auto contrast/brightness/stuff on the digital camera. So now, when flipping through these images, they swap from light to dark. They're all good quality, and look fine individually, but when viewed as a whole (which is their main purpose) they're fugly.
So what I'm trying to explain here is: I need a way to get an average of brightness and contrast of each picture and then make every picture comply to this, so that the color of the backdrop is hopefully less distorted. Of course the problem is that the wine bottles have different colors, so there will always be a little distortion, but they only take up like 20/30% of the image.
Is this at all feasible? Or will taking the pictures again be faster than solving this with my very limited unix and convert/mogrify skillz...
Thanks for your help in advance.
If it is helpful, here is a sample of two very distorted images (you might need to copy paste the links because hotlinking is disabled).
The Distortion:
http://img.waffleimages.com/e6c240110f7 ... ortion.jpg
The originals:
http://img.waffleimages.com/ec18374ae7e ... /out-0.jpg
http://img.waffleimages.com/e242f33c752 ... /out-1.jpg