<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
     xmlns:admin="http://webns.net/mvcb/"
     xmlns:content="http://purl.org/rss/1.0/modules/content/"
     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
	<channel> 

	<title>Comments on: How can I get an "average" of several images?</title>
	<link>http://ask.metafilter.com/81659/How-can-I-get-an-average-of-several-images/</link>
	<description>Comments on Ask MetaFilter post How can I get an "average" of several images?</description>
	<pubDate>Tue, 22 Jan 2008 11:20:17 -0800</pubDate>
	<lastBuildDate>Tue, 22 Jan 2008 11:20:17 -0800</lastBuildDate>
	<language>en-us</language>
	<docs>http://blogs.law.harvard.edu/tech/rss</docs>
	<ttl>60</ttl>

	<item>
		<title>Question: How can I get an &quot;average&quot; of several images?</title>
		<link>http://ask.metafilter.com/81659/How-can-I-get-an-average-of-several-images</link>	
		<description>How can I generate a &quot;visual average&quot; from a group of digital images? &lt;br&gt;&lt;br&gt;
A few years ago, I saw a &lt;a href=&quot;http://www.boingboing.net/2003/11/01/pornoportraiture-dec.html&quot;&gt;BoingBoing post&lt;/a&gt;  in which a guy had taken the pixel means of Playboy centerfolds for several decades.  I&apos;d like to use the same technique and am wondering if there&apos;s any off-the-shelf (preferably free) stuff that can do that.  </description>
		<guid isPermaLink="false">post:ask.metafilter.com,2008:site.81659</guid>
		<pubDate>Tue, 22 Jan 2008 10:57:24 -0800</pubDate>
		<dc:creator>k7lim</dc:creator>
		
			<category>computing</category>
		
			<category>image</category>
		
			<category>processing</category>
		
			<category>playboy</category>
		
	</item> <item>
		<title>By: Wolfdog</title>
		<link>http://ask.metafilter.com/81659/How-can-I-get-an-average-of-several-images#1209936</link>	
		<description>It&apos;s a one-step job with &lt;a href=&quot;http://www.imagemagick.org/script/index.php&quot;&gt;ImageMagick&lt;/a&gt;.  Say you have a bunch of .png files in a directory.&lt;br&gt;
&lt;br&gt;
&lt;tt&gt;convert -average *.png output.png&lt;/tt&gt;&lt;br&gt;
&lt;br&gt;
and you&apos;re done.  The source files do need to be cropped so they&apos;re all the same size first.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.81659-1209936</guid>
		<pubDate>Tue, 22 Jan 2008 11:20:17 -0800</pubDate>
		<dc:creator>Wolfdog</dc:creator>
	</item><item>
		<title>By: god hates math</title>
		<link>http://ask.metafilter.com/81659/How-can-I-get-an-average-of-several-images#1209945</link>	
		<description>This is fairly common (if not standard procedure) in Astrophotography.  It&apos;s easily done in photoshop, and I imagine that it could be done in &lt;a href=&quot;http://www.gimp.org/&quot;&gt;The Gimp&lt;/a&gt; as well.&lt;br&gt;
&lt;br&gt;
For basic averaging, the first image remains as-is.  The second image is layered on top, with an opacity of 50%.  The third image gets an opacity of 33%.  Continue for n images, giving each image an opacity of 1/x, where x= the position of the image in the stack.&lt;br&gt;
&lt;br&gt;
I also noticed Salavon&apos;s work, and I tried to replicate it with a large stack of one type of image.  I had about 20 layers, and it didn&apos;t look so hot - you might want to start out with more than that.&lt;br&gt;
&lt;br&gt;
&lt;small&gt;I imagine that it also wouldn&apos;t be that hard to write a script that analyzes the value of each pixel of all your images, and averages, and then writes the file, but I don&apos;t know that much about the individual image formats.  I do remember there being linux-based command line software out there for Astrophotography image stacking, but I could never get it to work.  If the photoshop/gimp route doesn&apos;t work for you, some googleing of &quot;Astrophotography image stacking&quot; should do you good.&lt;br&gt;
&lt;br&gt;
On preview - Oh damn!  Imagemagick.  That would certainly do the trick, as long as they&apos;re all the same size.  Having dealt with Imagemagick, though, I&apos;d say that the photoshop/gimp process would be a bit more user-friendly.&lt;/small&gt;</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.81659-1209945</guid>
		<pubDate>Tue, 22 Jan 2008 11:24:06 -0800</pubDate>
		<dc:creator>god hates math</dc:creator>
	</item><item>
		<title>By: StickyCarpet</title>
		<link>http://ask.metafilter.com/81659/How-can-I-get-an-average-of-several-images#1210056</link>	
		<description>If you want to do it by hand in photoshop, simply combine the first 2 at %50. Add the 3rd image at %33 percent, to that add the 4th at %25 and so on, adding the next picture as a percentage of 1/(the number of pictures used so far)</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.81659-1210056</guid>
		<pubDate>Tue, 22 Jan 2008 12:10:38 -0800</pubDate>
		<dc:creator>StickyCarpet</dc:creator>
	</item><item>
		<title>By: StickyCarpet</title>
		<link>http://ask.metafilter.com/81659/How-can-I-get-an-average-of-several-images#1210069</link>	
		<description>um, or what that other guy said. But while I&apos;m here again lets note that if you have 8 bit image components and, say 500 pictures, those last ones will round off to zero impact. So the best thing would add them all into a floating point of deeper bit representation, then average down in one shot.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.81659-1210069</guid>
		<pubDate>Tue, 22 Jan 2008 12:18:16 -0800</pubDate>
		<dc:creator>StickyCarpet</dc:creator>
	</item><item>
		<title>By: uandt</title>
		<link>http://ask.metafilter.com/81659/How-can-I-get-an-average-of-several-images#1210298</link>	
		<description>&lt;a href=&quot;http://www.metafilter.com/40548/collaborative-images&quot;&gt;This &lt;/a&gt; fpp a few years back about a guy combining flickr images links to code that does this as well</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.81659-1210298</guid>
		<pubDate>Tue, 22 Jan 2008 14:29:13 -0800</pubDate>
		<dc:creator>uandt</dc:creator>
	</item>
	</channel>
</rss>
