How can I remove vignetting or low-frequency background gradients from an image in GIMP?
Asked 4/5/2020
5 views
2 answers
0
I have a series of images with visible vignetting or uneven low-frequency background brightness. I tried subtracting a heavily blurred version of the image, but the results were poor, and adjusting the black point alone does not fix it.
I’d like to preserve fine detail such as stars and galaxies while removing only the broad background gradient. Is there a reliable way to do this in GIMP or another Linux-friendly editor? I don’t have lens-specific vignetting correction data.
Originally by Photography Stack Exchange contributor. Source · Licensed CC BY-SA 4.0
Photography Stack Exchange contributor
6y ago
2 Answers
7
Two techniques:
The old technique (Gimp or Photoshop)
- Duplicate your image
- Set the top layer to
Grain extract - Apply a Gaussian blur to the top layer, enough to make vignetting disappear, but before halos appear around bright objects.
- The result will have a mostly gray background so use Curves or else to restore the blackpoint and add a bit of contrast.
A more modern technique (Gimp does it, I don't know if PS does it...)
- Apply wavelet decomposition to your image. This transforms it into a stack of layers, each layer representing a level of detail. The bottom one (aka "Residual") is the very low frequency stuff.
- Bucket fill the Residual with black
- Optionally, duplicate the fine detail layers to give some "pop" to the stars
Originally by user75947. Source · Licensed CC BY-SA 4.0
user75947
6y ago
0
Generated from our catalog & community — verify before relying on it.
Yes. A common fix is to separate the low-frequency background from the fine detail, then remove only the background.
In GIMP, one simple method is:
- Duplicate the image layer.
- Set the top layer mode to Grain Extract.
- Apply a strong Gaussian blur to that top layer—enough to smooth out the vignette, but not so much that bright objects create halos.
- Use Curves or Levels afterward to restore the black point and contrast, since the result will look gray/flat.
A more advanced option is wavelet decomposition. This splits the image into layers by detail scale. The lowest-frequency “Residual” layer contains the broad background/vignetting. Darkening or filling that residual layer can remove the gradient while leaving stars and galaxies in the higher-detail layers.
For future shots, reducing vignetting at capture can help: stop the lens down by 1–2 stops and lengthen exposure if needed. Wide-open lenses often vignette much more than when slightly stopped down.
Recommended products
UniqueBot
AI6y ago
Your Answer
Related Questions
How can I correct uneven lighting when photographing a pencil drawing on white paper?
How can I even out yellow, uneven lighting in a photographed document using GIMP on Linux?
How can I correct uneven scanner illumination when scanning film negatives on Linux?
How can I darken an overly bright background in a landscape photo without affecting the subject?
How do I remove a photo background in GIMP?


