Atlas demonstration: the free source photo and the computed Rolling-Ball Background. A man sits on a rooftop ledge overlooking a detailed cityscape with a prominent brick wall in the foreground. The technique is clearly demonstrated by the distinct cloud-like formations in the background estimate, which successfully separates the fine architectural details from the sky.Image: Valentin Antonini valentinant · CC0 (via Wikimedia Commons), processed for the AtlasView source ↗
Prompt
Apply Rolling-Ball Background subtraction, reducing broad uneven shading and slow brightness variations across the image. Make small bright structures and fine luminous details stand out against a darker, more uniform background, preserving their local edges and textures without adding glow or new light sources. Keep the original subject and composition.
Broad shading is reduced, making [small bright details]stand out against amore even background.
Principle
The algorithm treats pixel brightness as height and rolls a[virtual ball1]beneath this surface to estimate the background. It subtracts this [background estimate2]from the image, reducing broad brightness variations while retaining smaller bright features.
Try it out
Vary the ball radius and watch when useful detail starts disappearing with the background.
Classification
Calculated image processing result.
Further examples · 9 images
02Rolling-Ball Background, applied to “Vintage car headlight. (Unsplash)”The photograph displays the front hood and headlights of a classic car covered in rain droplets. Small, high-contrast highlights on the individual beads of water are preserved while the broad gradients of the car's paintwork are significantly leveled.Robin Vet robinvet (photo); processed for the Atlas · CC0 · Wikimedia Commons03Rolling-Ball Background, applied to “Imani-bahati-glass-window-with-white-steel-frame”An arched window is shown, featuring reflections of white architectural circles along its right side. The algorithm isolates these repetitive bright orbs from the building's facade by subtracting the darker, broader geometric background of the wall.Imani Bahati https://www.imani-bht.com/ (photo); processed for the Atlas · CC0 · Wikimedia Commons04Rolling-Ball Background, applied to “Looking Up (Unsplash i9BFa1Q5cBk)”A monochrome scene depicts ornate wrought iron scrollwork resting atop a stone architectural feature. The subtraction process is demonstrated as the dark structural details are emphasized against a flattened, uniform gray background.David Braud davidbraud (photo); processed for the Atlas · CC0 · Wikimedia Commons05Rolling-Ball Background, applied to “Locked door of old temple. (Unsplash)”A stone balcony and urn are shown against a wall of textured rock and masonry. The background estimation is highly apparent, creating a high-contrast relief where the intricate stone textures are preserved while broad shadows are removed.Jayme McColgan jayme (photo); processed for the Atlas · CC0 · Wikimedia Commons06Rolling-Ball Background, applied to “Cappadocia, Turkey, 2015-06-09 (Unsplash)”Numerous hot air balloons drift over a rugged landscape of rock formations and valleys. The virtual rolling sphere has left distinct circular halos around the balloons, isolating them from the surrounding sky brightness.Daniela Cuevas danielacuevas (photo); processed for the Atlas · CC0 · Wikimedia Commons07Rolling-Ball Background, applied to “Farm Windmills (Unsplash)”A large wind turbine stands in a field beneath a dramatic, cloudy sky. The effect is highly visible through the large, bright silhouettes trailing the turbine blades where the background estimation was locally adjusted.Drew Hays drew_hays (photo); processed for the Atlas · CC0 · Wikimedia Commons08Rolling-Ball Background, applied to “Resting deer (Unsplash)”An elk stands among dense brush and saplings in a monochrome wilderness scene. The effect is evident through the bubbly, dark subtraction map that targets the complex textures of the fur and branches against the lighter ground.Levi Saunders levisaunders (photo); processed for the Atlas · CC0 · Wikimedia Commons09Rolling-Ball Background, applied to “Haleakala Highway, Kula, United States (Unsplash)”This landscape depicts rolling volcanic dunes and craters under a bright sky. The transformation is visible as it flattens the broad gradients of the sand dunes to emphasize the sharp, jagged textures of the volcanic rock.Jeff King jeffkingla (photo); processed for the Atlas · CC0 · Wikimedia Commons