<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://www.registry.gimp.org" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>mode</title>
 <link>http://www.registry.gimp.org/taxonomy/term/356</link>
 <description>The taxonomy view with a depth of 0.</description>
 <language>en</language>
<item>
 <title>Average Layer</title>
 <link>http://www.registry.gimp.org/node/5012</link>
 <description>This script is intended for a series of photographs with (on each photgraph different) unwanted objects on it, e.g. a large place with moving people. &lt;h3&gt;Update!&lt;/h3&gt;V1.1 works with rectangular selections!
The plugin creates a new layer or a new image consisting of the arithmetical, geometrical or harmonic mean of every pixel, thereby creating a &#039;ghost effect&#039; of the moving objects. 
If rather you want to remove objects, choose the &#039;cutoff&#039; function, which removes outlier pixels after sorting the RGB values. This is also known as &lt;em&gt;winsorizing&lt;/em&gt;. Also median and mode remove outliers, but less efficiently. &lt;p&gt;
For best results, try to cutoff only on dark, bright or on both sides. 

Working on selections only greatly improves speed. Just make a rectangular selection in your image and then call the &quot;Average Layer&quot; script.
&lt;p&gt;
This was inspired by reports of a friend of mine on a Photoshop plugin, which also removes unwanted objects from a series of photographs. I haven&#039;t seen it myself nor do I know the algorithm behind it. If someone knows better algorithms than winsorizing means, tips are welcome!
&lt;h3&gt;
Prerequisites&lt;/h3&gt;
You need Scipy, a scientific computing package for python. Get it at &lt;a href=&quot;http://www.scipy.org/Download&quot;&gt;the Scipy homepage&lt;/a&gt;.&lt;p&gt;
&lt;h2&gt;
Example&lt;/h2&gt;
Before:&lt;p&gt;
&lt;img src=&quot;http://registry.gimp.org/files/Iron_Teddy_1.jpg&quot; alt=&quot;Teddy on three photographs in various position.&quot;&gt;&lt;p&gt;
After arithmetical mean with 67% cutoff (dark outlier pixels):&lt;p&gt;
&lt;img src=&quot;http://registry.gimp.org/files/Iron_Teddy_Arithmetical_Mean_Cutoff_dark.jpg&quot; alt=&quot;Teddy removed.&quot;&gt;

Some shades are still left, one might correct this quite easily with other tools.</description>
 <comments>http://www.registry.gimp.org/node/5012#comments</comments>
 <category domain="http://www.registry.gimp.org/taxonomy/term/36">GPLv3</category>
 <category domain="http://www.registry.gimp.org/taxonomy/term/22">Python</category>
 <category domain="http://www.registry.gimp.org/taxonomy/term/348">average</category>
 <category domain="http://www.registry.gimp.org/taxonomy/term/239">layer effects</category>
 <category domain="http://www.registry.gimp.org/taxonomy/term/355">mean</category>
 <category domain="http://www.registry.gimp.org/taxonomy/term/357">median</category>
 <category domain="http://www.registry.gimp.org/taxonomy/term/356">mode</category>
 <category domain="http://www.registry.gimp.org/taxonomy/term/52">python</category>
 <category domain="http://www.registry.gimp.org/taxonomy/term/353">remove objects</category>
 <category domain="http://www.registry.gimp.org/taxonomy/term/108">selection</category>
 <category domain="http://www.registry.gimp.org/taxonomy/term/354">unwanted object reduction</category>
 <category domain="http://www.registry.gimp.org/taxonomy/term/358">winsorize</category>
 <enclosure url="http://www.registry.gimp.org/files/Iron_Teddy_1.jpg" length="5266" type="image/jpeg" />
 <pubDate>Sat, 24 May 2008 10:58:02 +0200</pubDate>
 <dc:creator>oeller</dc:creator>
 <guid isPermaLink="false">5012 at http://www.registry.gimp.org</guid>
</item>
</channel>
</rss>
