• Astronomy & Skywatching
  • Night Sky Objects
  • Space Facts
  • Astrophotography
  • About
menu icon
go to homepage
  • Astronomy & Skywatching
  • Night Sky Objects
  • Space Facts
  • Astrophotography
  • About

subscribe
search icon
Homepage link
  • Astronomy & Skywatching
  • Night Sky Objects
  • Space Facts
  • Astrophotography
  • About

×
Home » Astrophotography

PixInsight Background Extraction - How to Remove Gradients and Tints

Published: Mar 14, 2019 · Last update: Jan 19, 2022 · Author: Paweł Białecki · Leave a Comment

If you don't have access to truly dark skies with no light pollution anywhere, and you don't own a genuinely flat-field telescope (do they even exist?), there are high chances that your stacked astro-pictures have some gradients and tints (uneven field illumination). Do you have to live with that? Well, it depends on your PixInsight skills! This tutorial will show you the PixInsight background extraction: how to eliminate light pollution gradients, color tints, and the effects of lack of proper flat frames in your stacked astrophotography pictures.

How do those gradients and tints look like?

Look at this picture:

Trifid and Lagoon nebulae, unprocessed. PixInsight background extraction
Trifid and Lagoon nebulae, unprocessed (only stretched for display purposes). Nothing extraordinary, just an astrophoto.

This picture is an astrophotography stack before further processing. It's not important how many subs there are and other exposure settings like ISO, aperture, or shutter speed. Two important factors here are:

  1. There is a significant vignetting gradient
  2. There is a significant light pollution gradient

Vignetting comes from lens/telescope imperfections, and light pollution comes from our civilization. Can we do something about it? Of course, we can.

Eliminate uneven field illumination using PixInsight's Automatic Background Extractor (ABE)

PixInsight has an amazing (yes, no other word can express it better) tool called Automatic Background Extractor (there is also a manual version, called the Dynamic Background Extraction, but this is a topic for another post. Usually, the automatic tool produces fantastic results without any manual steps involved.). Open your stack in PixInsight, and go to Process -> Background Modelization -> Automatic Background Extractor.

PixInsight Automatic Background Extractor
PixInsight Automatic Background Extractor.

As for a start, the default values are good, except the Target Image Correction -> Correction parameter - be sure to select Subtraction instead of None. Let's apply this to my Trifid and Lagoon stack. PixInsight, as a result, gives me two pictures.

PixInsight extracted gradient
First: extracted gradient. You don't need this; close the image editing window in PixInsight.
PixInsight background extraction
BOOM! Second picture: the background-extracted stack. After just a few clicks, automatically.

This method is not perfect - there is still some vignetting and uneven field illumination. But if you look at the base image and then on the background-extracted one - it's just hard to force me not to use this tool for astrophotography post-processing. And keep in mind that background extraction is one of the first steps you should do when you post-process astronomy images. So the image above is just a starting point (without those gradients - a good one).

If you are not satisfied with the first extraction, run the second one. Also, play with the function degree parameter under the interpolation and output submenu. The greater the number, the more ABE extracts. Experiment.

This is the final picture of Trifid and Lagoon nebulae. I like it. I shot Fuji X-T20, Rokinon/Samyang 135mm f/2, and Fornax LighTrack II from my balcony. There are five minutes of the total integration time (f/2 FTW), sadly no darks, no bias, and no flats.

More examples of PixInsight Automatic Background Extraction

Let's run ABE on a few more images. It's strangely satisfactory for me to use this tool in my astrophotography post-processing workflow. I know it's science, not magic, but it feels like it.

Beehive Cluster

Beehive Cluster base stack
Automatically generated gradient
PixInsight background extraction
Stack after gradient subtraction

Rosette Nebula

Rosette Nebula base stack
Gradient
Rosette Nebula and the PixInsight background extraction
Stack after gradient subtraction

Leo Triplet

Leo Triplet base stack
Gradient
Stack after gradient subtraction

What do you think? Have you used this tool? Let me know in the comments sections.

Download Free eBook Now

Discover Beginner Stargazing Tips that make the night sky simple and exciting.

We won't send you spam. Unsubscribe at any time.
Invalid email address
🚀 Almost done! Just click the confirmation link in your inbox and unlock your free PDF instantly.

More Astrophotography

  • astrophotography acronyms dictionary. Overhead view of astrophotography gear on a dark starry background, including telescope, filters, guide camera, and red flashlight. flat lay of astrophotography equipment on dark starry background, labeled items like telescope, filter wheel, guide camera, star chart, red flashlight, clean overhead view, no text, high detail, night sky theme
    Astrophotography Acronyms: A to Z Astro Imaging Dictionary
  • Astrophotography Targets by Month Full List
    Astrophotography Targets by Month - Best List for Beginners
  • Fall Astrophotography: The 7 Best Autumn Targets for Beginners
  • Dumbbell Nebula (M27): How to Photograph with a DSLR Camera

Comments

No Comments

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Paweł Białecki, the author behind Astro Photons
Paweł Białecki

I'm Paweł Białecki - an astrophotographer and indie app developer who's been exploring the night sky for over a decade. Here on Astro Photons, I share practical guides, cosmic insights, and deep-sky photos to help you enjoy and understand our universe - no telescope degree required.

This blog is part of my personal mission to make astronomy more approachable. I write for beginners, hobbyists, and curious stargazers who want real, useful advice - not just textbook definitions. All guides are based on hands-on experience, actual night sky photography, and a genuine love for the cosmos.

More about me →

Free Astronomy Ebooks

Discover the night sky with my beginner-friendly guides. Written from 10+ years of skywatching and astrophotography experience.

  • Discover 7 Constellations Every Stargazer Should Know - Free eBook download
    7 Constellations Everyone Should Recognize - Free eBook
  • Free ebook for beginner stargazers! Discover 10 simple tips to enjoy the night sky without expensive gear. Download your free astronomy guide today.
    Beginner Stargazing Tips - Free Ebook With 10 Simple Tricks
  • 100 Space Facts That Will Blow Your Mind - Free Ebook
    100 Space Facts That Will Blow Your Mind - Free Ebook

Written by Paweł Białecki - astronomy blogger & astrophotographer since 2018.

As seen in:

Footer

↑ back to top

About

  • Author - Paweł Białecki
  • Astrophotography Gallery
  • Terms and Conditions
  • Legal, Privacy Policy, Cookies

Contact

  • Contact


© 2017–2025 Paweł Białecki · Astro Photons. This site uses cookies. By continuing to browse, you accept our use of cookies. Some articles may contain affiliate links. As an Amazon Associate, I earn from qualifying purchases. Sponsored content may also appear from time to time. Astro Photons is owned and operated by Paweł Białecki, os. Orła Białego 48, 59-920 Bogatynia, Poland, EU. Apple and App Store are trademarks of Apple Inc. Other names may be trademarks of their respective owners.

x
Get Free October 2025 Astronomical Events Calendar

 

Download your free one-page printable PDF guide for October 2025. Discover the Moon phases, visible planets, meteor showers, and key sky events - all in one simple astronomy calendar.

Join our subscribers who get content directly to their inbox.
Invalid email address
🚀 Almost done! Just click the confirmation link in your inbox and unlock your free PDF instantly.
x
Leaving without knowing what to see tonight?

Don't miss the top stargazing sights. One free email each week with planets, stars & sky events.

Join our subscribers who get content directly to their inbox.
Invalid email address
🚀 Almost there! Check your inbox and click the confirmation link to start getting your weekly sky guide.