Skip to main content
  1. Home
  2. Photography
  3. News

MIT scientists develop algorithm for removing reflections from photos

Add as a preferred source on Google

Whatever the scenario, we’ve all taken photos through windows hoping to capture that fleeting image: an arching rainbow from the car window, a person or car passing by a building window, or a priceless artifact behind museum glass. And when you go to view your photos afterward, you see that they have been marred by the reflections, which are usually of the photographer. Well, a group at the Massachusetts Institute of Technology may have found a solution to the problem after creating an algorithm that reduces the reflection in photographs.

Photos taken through windows or glass usually have two nearly identical reflections, one slightly offset from the other. Double-paned windows, as well as plain old thick windows, are often the culprits, says YiChang Shih, one of the MIT researchers who developed the algorithm. “With that kind of window, there’s one reflection coming from the inner pane and another reflection from the outer pane,” Shih says. “The inner side will give a reflection, and the outer side will give a reflection as well.”

Recommended Videos

So, the algorithm looks at the values for images inside the glass and outside of it, and attempts to correct it so that it looks the way it was intended. “You have an image from outdoor (A) and another image from indoor (B), and what you capture is the sum of these two pictures (C),” Shih says, who presents the problem as a complex mathematical challenge in then trying to recover A and B data from C.

“But the value of A for one pixel has to be the same as the value of B for a pixel a fixed distance away in a prescribed direction. That constraint drastically reduces the range of solutions that the algorithm has to consider,” MIT News writes.

The process in really technical, but in short, the algorithm uses a technique developed at Hebrew University of Jerusalem in Israel that analyzes the colors of the images by breaking them into 8 x 8 blocks of pixels, calculating “the correlation between each pixel and each of the others.” Out of 197 images from Google and Flickr that they tested the algorithm on, 96 worked. (Check out MIT News for a more detailed explanation.)

“People have worked on methods for eliminating these reflections from photos, but there had been drawbacks in past approaches,” Yoav Schechner, a professor of electrical engineering at Israel’s Technion, told MIT News. “Some methods attempt using a single shot. This is very hard, so prior results had partial success, and there was no automated way of telling if the recovered scene is the one reflected by the window or the one behind the window. This work does a good job on several fronts.”

“The ideas here can progress into routine photography, if the algorithm is further ‘robustified’ and becomes part of toolboxes used in digital photography,” Schechner adds. “It may help robot vision in the presence of confusing glass reflection.”

The MIT researchers will present the algorithm at the Computer Vision and Pattern Recognition conference in Boston, in June. The research is still in its early stages, but over time, we could see it embedded into digital cameras and smartphones, or photo software, and do away with unwanted reflections once and for all.

Enid Burns
Former Contributor
Enid Burns is a freelance writer who has covered consumer electronics, online advertising, mobile, technology electronic…
I bought Kodak’s viral keychain camera, and the bad photos are part of its charm
The Kodak Charmera is barely a camera, and I still keep using it
Machine, Wheel, Camera

I bought the Kodak Charmera partly because I wanted a portable digital camera, and partly because I wanted a pretty little collectible. The Charmera is sold as a blind box, so you do not know which version you are getting until the box is opened. There are multiple retro Kodak-style designs, plus a transparent secret edition that looks like the one everyone would want.

I had the shopkeeper pick my box for better luck, and it worked out. I got the yellow variant, which is inspired by Kodak's original 80s disposable camera. The transparent one is definitely the fun collector’s piece, but the yellow model feels like the proper Kodak version. It looks like a tiny toy camera that escaped from a souvenir shop, found a keyring, and now hangs around wherever you go.

Read more
This new $30 keychain camera is coming for Kodak Charmera with a flip screen for selfies
Yashica's new camera makes toy photography more fun
YASHICA Funtastic Keychain Camera in multiple variants

Tiny digital cameras are all the rage, and Yashica is now offering a very cute toy photography experience of its own. The company’s new Funtastic Keychain Camera is exactly what the name suggests, a miniature digital camera small enough to clip onto your keys, bag, or lanyard. The popular Kodak Charmera is the obvious comparison, which brings a tiny blind-box keychain camera that became a viral collectible.

Now, Yashica's version lands in the same novelty-camera lane, but adds one very useful trick, which is a 180-degree flip screen.

Read more
Google releases big v4.0 update for its popular Snapseed editing app on Android
Electronics, Phone, Mobile Phone

After years of sitting on its hands, Google appears to have remembered it owns one of the best photo editing apps on mobile. Snapseed 4.0 is now rolling out to Android, bringing the platform up to speed after a stretch of iOS exclusivity that left Android users watching from the sidelines.

The story starts last June, when Google quietly broke Snapseed out of its long dormancy with a significant 3.0 update for iPhone. It was a surprise move that suggested the company was serious about the app again. Google then confirmed at the start of this year that Android wouldn't be left behind for long, and true to that word, the Play Store listing has now been updated to reflect version 4.0 — skipping straight past 3.0 for Android users and landing both platforms on the same version simultaneously.

Read more