PITTSBURGH--Computer graphics researchers at Carnegie Mellon University have developed systems for editing or altering photographs using segments of the millions of images available on the Web.
Whether adding people or objects to a photo, or filling holes in an edited photo, the systems automatically find images that match the context of the original photo so they blend realistically. Unlike traditional photo editing, these results can be achieved rapidly by users with minimal skills.
"We are able to leverage the huge amounts of visual information available on the Internet to find images that make the best fit," said Alexei A. Efros, assistant professor of computer science and robotics. "It's not applicable for all photo editing, such as when an image of a specific object or person is added to a photo. But it's good enough in many cases," he added. "Why Photoshop if you can 'photoswap' instead""
Efros and his colleagues will present papers on two related systems at the Association for Computing Machinery's Special Interest Group on Graphics and Interactive Techniques (SIGGRAPH) annual conference Aug. 5-9 in San Diego.
One system, called Photo Clip Art (http://graphics.
To make the resulting image appear as realistic as possible, the system analyzes the original photo to estimate the camera angle and lighting conditions, and then looks in the clip art library for an object -- a car, for instance -- that matches those criteria. The user need only identify the horizon in the original photo to orient the system. Using previously developed Carnegie Mellon technology for analyzing the geometric context of a photo, the system can then place the object within the scene, adjusting its size as necessary to put it in proportion to other objects of equal distance from the camera.
"Matching an object with the original photo and placing that object within the 3-D landscape of the photo is a complex problem," said Lalonde, who led development of the system. "But with our approach, and a lot of clip art data, we can hide the complexity from the user and make the process simple and intuitive."
The other system, called Scene Completion (http://graphics.
The system looks for image segments that match the colors and textures that surround the hole on the original photo. It also looks for image segments that make sense contextually -- in other words, it wouldn't put an elephant in a suburban backyard or a boat in a desert.
In the case of well-photographed cities or popular tourist attractions, Efros said, the system might get lucky and find a photo of the same scene on the Web. In other cases, it might offer a number of possible images that could fill in the hole. A retaining wall edited out of one photo, for instance, might be replaced by the image of a building, a grassy slope or a rock outcropping. The system typically gives the user 20 different choices for filling in the hole.
The success of this approach depends on the number of photos available to the system, Hays said. "We saw a dramatic improvement when we moved from a database of 10,000 images to two million images," he noted. "And that is just a tiny fraction of the hundreds of millions of images already available on sites like Picasa and Flickr. We have tons of photos from which to choose."
About Carnegie Mellon: Carnegie Mellon is a private research university with a distinctive mix of programs in engineering, computer science, robotics, business, public policy, fine arts and the humanities. More than 10,000 undergraduate and graduate students receive an education characterized by its focus on creating and implementing solutions for real problems, interdisciplinary collaboration, and innovation. A small student-to-faculty ratio provides an opportunity for close interaction between students and professors. While technology is pervasive on its 144-acre Pittsburgh campus, Carnegie Mellon is also distinctive among leading research universities for the world-renowned programs in its College of Fine Arts. A global university, Carnegie Mellon has campuses in Silicon Valley, Calif., and Qatar, and programs in Asia, Australia and Europe. For more, see www.cmu.edu.