Skip to main content

MIT scientists develop algorithm for removing reflections from photos

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
Enid Burns is a freelance writer who has covered consumer electronics, online advertising, mobile, technology electronic…
SpaceX images show the awesome power of Starship’s Raptor engines
The Super Heavy booster's Raptor engines powering the Starship's launch on November 19, 2024.

SpaceX has posted some incredible images showing the Super Heavy booster's 33 Raptor engines as they powered the Starship rocket skyward at the start of the vehicle’s sixth test flight on Tuesday.

“[Thirty-three] Raptor engines powering the Super Heavy booster off the pad from Starbase,” SpaceX wrote in the message on X.

Read more
Best Black Friday drone deals to take to the skies
DJI's Air 3S drone.

Update 11/29/2024: As you likely know, we spend a lot of time reviewing our deal guides to make sure the prices are all up-to-date and you're getting the latest info on steep Black Friday deals and discounts. Our most recent update was no exception. We added a few more offers and updated all the prices. Enjoy!

If you’ve been shopping Black Friday deals you may have noticed there’s a lot to shop right now. Among the hot items are drones, with plenty of Black Friday drone deals available. That includes recognizable brands like DJI and Holy Stone, as well as some budget-friendly options. We’ve rounded up all of the best Black Friday drone deals, and you can read all about them below. So if you’ve been shopping Black Friday camera deals and would rather take a camera to the skies, or if you’d simply like a new toy to fly around, read onward for all of the details on how to save on a drone during Black Friday.

Read more
This Fujifilm Instax Mini 11 instant camera bundle is $90 for Cyber Monday
The contents of the Fujifilm Instax Mini 11 instant camera bundle.

We're already seeing the best Cyber Monday camera deals all over. In fact, many of Walmart's Cyber Monday deals are going strong, for example, including their Fujifilm Instax Mini 11 instant camera bundle, which is currently still on sale for only $90. Saving 10% also makes this deal the perfect holiday gift, giving your loved one everything they'll need to start making instant camera memories. You'll have to hurry, though, as there's no assurance that this bargain will last as long as most of the other Cyber Monday deals that are sticking around.

Why you should buy the Fujifilm Instax Mini 11 instant camera bundle
The Fujifilm Instax Mini 11 is an instant camera that gives you the photo that you took in just a few seconds. It prints immediately, like an old-school Polaroid. It's also very beginner-friendly, as it will automatically choose the most appropriate shutter speed based on your surroundings for the perfect shot. The Fujifilm Instax Mini 11 also has a selfie mode that you can activate by pulling out the lens barrel, and you can use the selfie mirror to make sure that you're taking the perfect selfie.

Read more