"Joey Mukherjee" on wrote...
| I have lots of images, all of which are the same size, which I would
| like to combine into a single image.
|
| However, the images are mainly black with little flecks of white. I
| want to combine where all the whites are in the final image. Ideally,
| if a white occurs in more than one image, I would like this white to
| appear brighter (or bigger?). I feel like I could use ImageMagick or
| PerlMagick to accomplish some of this.
|
| Can someone give me some hints on how to accomplish this? Or if you
| have sample code, even better!
|
| I've tried various iterations of:
|
| composite -compose lighten image*.jpg ../flatten.png
|
| I really thought this would work, but the images show too dark to be accurate.
|
| Thanks for any help!
|
convert image image image image.... -average result.png
You can use -sigmodial-contrast to adjust the result for a logrithimic
brightness rather than linear.
If you just what the white spots without your brightness requirment
'screen' (negated multiply) the images together
convert image image image image.... \
-compose screen -background black -flatten result.png
The background color is needed to ensure it does not effect the result
of the multiple image composite 'flatten'
See IM examples... Mosaics of Multiple Images
http://www.imagemagick.org/Usage/mosaics/
Average is at the bottom. composite flatten is just a bit above that.
Anthony Thyssen ( System Programmer ) <[EMAIL PROTECTED]>
-----------------------------------------------------------------------------
As a computer, I find your faith in technology amusing.
-----------------------------------------------------------------------------
Anthony's Home is his Castle http://www.cit.gu.edu.au/~anthony/
_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users