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…
This award-winning phone thermal camera is 10% off for Halloween, saving you $107
Thermal Master P3 thermal camera drops with code THERMCAM10 (save $107 total): 512x384 IR super resolution, an adjustable-focus lens, and 2026 Tom’s Guide AI Award winner.
Man using thermal camera attachment with phone

A phone thermal camera is one of those tools you don’t think you need until the first time it saves you from an expensive problem, and the Thermal Master P3 just got easier to try. For Halloween, it’s discounted with the code THERMCAM10, a 10% cut that works out to $107 off the total. It’s also fresh off a win at the 2026 Tom’s Guide AI Awards for best phone thermal camera, which is the kind of third-party nod that separates a serious tool from the cheap clip-on sensors that flood this category.

Thermal Master Halloween sale

Read more
I found 8 early Prime Day camera and creator gear deals I’d actually buy
Cameras, mics and webcams are already getting cheaper before Prime Day
Prime Day Camera Deals

We are nearing Amazon's Prime Big Deal Days, which officially run October 6 and 7. But there is no need to wait until the sale begins to start looking. Early offers are already live, and camera gear is one category where I found enough worthwhile discounts to put together a proper creator-focused list.

I’ve deliberately gone wider than interchangeable-lens cameras here. There are pocket and action cameras, a 360 camera, an instant camera, two wireless microphone systems, and a pair of webcams covering very different budgets. Prices were checked on October 2, and as always with Amazon, they can move quickly.

Read more
Digital Trends Readers’ Choice Awards 2026: It’s time to pick your favorite tech brands
This is your opportunity to honor the brands that you trust, and whose products are a part of your daily lives.
Digital Trends Readers' Choice Awards

For years, Digital Trends has engaged millions of tech enthusiasts across the world, who trust us with their daily news brief, hot takes, and useful guides. Most importantly, our reviews section is the pillar of our expertise and helps you make informed decisions about which gadgets to buy and which appliances to skip. Now, it's time for you to pick the brands that have impressed you with product quality, after-sales experience, and basically any other aspect that makes you trust them.

The 2025 edition of Digital Trends Readers' Choice awards picked up some surprising winners, showing us that an innovative new label can easily dethrone an established one if their products wow you consistently, and their services don't leave you hanging in a sea of uncertainty. This year, there are more categories to pick and more brands to vote for. From the best in the PC segment to the sleeper hit in the robot vacuum segment, we need your experience and faith to pick the brands that deserve your hard-earned money and acclaim.

Read more