Normalization over multiple images

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
Bulkilol
Posts: 1
Joined: 2013-10-11T05:23:25-07:00
Authentication code: 6789

Normalization over multiple images

Post by Bulkilol »

Hello,

We have aerial images that we want to aggregate to do an orthophoto (we use Photoscan to do it). However, we want to improve the contrast before doing so, using Imagemagick. For this we use the command

Code: Select all

convert in.jpg -normalize out.jpg
where I script over all the images we have. While the result looks great for individual pictures, the contrast is not great for the whole set.
Indeed, we fly over snow, water and vegetation, so two consecutive sometimes go darker because there is a patch of snow (so it is saturated in white). This makes it harder for Photoscan to register correctly those images, and the result looks weird (an area of the orthophoto is darker for no reasons).

Is it possible to normalize each individual image, but taking into account that it is part of a whole folder of images?
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Normalization over multiple images

Post by snibgo »

You can append the images together, normalize, then split them. However, if the camera settings change between the photos (eg the aperture closes down for the snow) this probably doesn't solve your problem. You probably want to adjust some images so they match the others.

See related thread viewtopic.php?f=1&t=23727
snibgo's IM pages: im.snibgo.com
Post Reply