<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>STI Blog &#187; Image Processing</title>
	<atom:link href="http://shaw-technologies.com/archives/category/imageprocessing/feed" rel="self" type="application/rss+xml" />
	<link>http://shaw-technologies.com</link>
	<description>Interesting developments towards practical uses of artificial intelligence</description>
	<lastBuildDate>Tue, 07 Apr 2009 05:13:07 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Scene Completion</title>
		<link>http://shaw-technologies.com/archives/54</link>
		<comments>http://shaw-technologies.com/archives/54#comments</comments>
		<pubDate>Tue, 08 Jan 2008 02:03:13 +0000</pubDate>
		<dc:creator>John Shaw</dc:creator>
				<category><![CDATA[Image Processing]]></category>

		<guid isPermaLink="false">http://shaw-technologies.com/archives/54</guid>
		<description><![CDATA[Scene completion is the task of filling in holes in a picture, and algorithms for doing it automatically are starting to become impressive.  In the series of pictures above, the original picture (left) has an obnoxious roof taking up a lot of the picture.  In the next picture, the user erased the roof, [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.shaw-technologies.com/images/teaser.jpg" width="100%" alt="Scene Completion Teaser" /></p>
<p>Scene completion is the task of filling in holes in a picture, and algorithms for doing it automatically are starting to become impressive.  In the series of pictures above, the original picture (left) has an obnoxious roof taking up a lot of the picture.  In the next picture, the user erased the roof, leaving a gaping hole in the picture.  A current algorithm for filling in holes uses other similar pictures to figure out what should go in the hole, so the next picture shows similar pictures from a picture database.  The final picture has the hole filled in with a reasonable guess.  </p>
<p>The algorithm that generated the above sequence of pictures is due to James Hays and Alexei Efros and is explained in <a href="http://graphics.cs.cmu.edu/projects/scene-completion/scene-completion.pdf">this paper</a>.  It is driven by a database of 2.3 million images of landscape, travel, and city photography.  The first stage of the algorithm is to get the &#8220;gist&#8221; of the scene, which is a descriptor that can distinguish between cities, hillsides, beaches, and so forth.  The algorithm uses this to find a set of images from its database that are of the same general type of thing.  This prevents the algorithm from filling in hillsides with car roofs.</p>
<p>Once it has a set of images of similar things, it looks at the region around the hole and tries to find similar regions in the list of pictures.  Next it chooses a small set of these best fitting regions and blends each of them back into the original hole, making a set of composite pictures without holes.  Finally, it presents each of these composite pictures to the user so they can choose which one they like the best.</p>
<p>The algorithm works very well most of the time.  However, it still has a few drawbacks.  First, it is currently only trained on city, landscape, and travel pictures.  As the range of pictures grows, the problem will become more difficult.  Second, the program currently runs on a cluster of 15 machines, instead of a single desktop PC.  Third, it still makes serious mistakes occasionally (they show a failure case in the article where the bottom half of a lady was filled in with what looks like a trash can).  These drawbacks are serious enough to show that scene completion is not yet ready for the mass market, but the overriding message I took from the article was that it will be ready quite a bit sooner than I would have guessed.</p>
]]></content:encoded>
			<wfw:commentRss>http://shaw-technologies.com/archives/54/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

