GraXpert is a free, standalone open-source application for Windows, Mac, and Linux designed to remove gradients from your astronomical images, regardless of whether they are stretched or linear, and in just about any popular format, including TIFF (16-and32-bit depth), PNG, as well as PixInsight native XISF-format.

Result of Using GraXpert

I chose a particularly difficult image for GraXpert to work with: a long exposure of Polaris and the surrounding nebulosity region, or Integrated Flux Nebula (IFN). I chose this image because it is complex in that the background is uneven, but it also has nebulosity throughout.

I had difficulty removing the background using PixInsight’s DBE (DynamicBackgroundExtraction) and wanted to see what GraXpert could do with the image. Swipe over the image for a before (left) and after (right) image:

The before image has a gradient that goes from dark on the left to lighter on the right, and the corners have various gradients. The image is complex because the IFN is apparent throughout the image, making it difficult to separate the background from the subject.

The after image is a big improvement: the IFN is clearly visible and the corners are much better; GraXpert calculated the background despite the IFN.

Here is the background image:

The background is quite complex and GraXpert was able to remove it from the source image.

Acquiring and Installing GraXpert

The author of GraXpert, Frank Sackenheim, has created a website from where he distributes GraXpert along with a user guide and manual. You don’t need to do anything to install GraXpert on Windows – just download and run the executable.

Here is a link to the website: https://www.graxpert.com

Using GraXpert

If you are a PixInsight user, the interface is almost exactly the same as ABE – AutomicBackgroundExtractor, so you’ll already be familiar with the interface’s core concepts.

Start by clicking the Load Image button and select an image: ideally, the image should be in linear (unstretched) format, but GraXpert can also work with stretched images.

If your image is unstretched, select a stretch option next; this changes the image displayed.

Next, either place samples on your image’s background or use the options in section three of the interface to generate samples for you: select the samples per row, and tolerance and then click the Create Grid button to generate the samples.

You can move samples around by clicking and dragging and you can delete a sample by right-clicking the sample you want to remove. Place samples on regions of background in your image, avoiding bright stars and areas having nebulosity or your image’s target in them.

Section four of the interface is where you perform the background calculation and removal. Select an Interpolation Method:

  • RBF is balanced between speed and effectiveness
  • Splines is fast
  • Kriging is slower and more effective

Select a smoothing factor based on your background’s unevenness: start with the default and adjust from there based on your result.

Click the Calculate Background button to execute the calculation and subtract the background from your image.

Once the calculation is done, you’ll see the final, modified, image on your screen. A dropdown at the top of your image allows you to switch between your Processed, Original, and Background image.

You can add, move, and delete samples, and re-execute the calculation as many times as you wish.

Once satisfied, choose an output format in the interface’s section five and click the appropriate button to save your background, processed image, or the stretched and processed final image.

Differences Between PixInsight and GraXpert

PixInsight’s ABE and DBE processes are more sophisticated than GraXpert in that they allow you to save and reuse the locations of your samples using an image’s history. Once you reset the samples in GraXpert or restart the application, your samples are lost and you need to start over again. Placing samples is relatively easy though.

If you save your image in GraXpert in XISF format with samples on it, GraXPert will save the location of your samples so they’ll be available to you the next time you load the image.

GraXpert seems to be more sophisticated than ABE or DBE because it handles complex backgrounds very well. It is recommended that you try ABE, DBE, and GraXpert on your image to determine which produces a better result – like everything else in PixInsight, experimentation is key.

Conclusion

GraXpert is a free, open-source application for Windows, Mac, and Linux designed to remove gradients from astronomical images in various formats, including TIFF, PNG, and PixInsight’s XISF. The application performs well even on complex images with uneven backgrounds. GraXpert’s interface is similar to PixInsight’s ABE, allowing users to generate samples and perform background calculation and removal. The program supports multiple interpolation methods and allows users to save and reload samples for future adjustments. GraXpert is a valuable tool for astrophotographers and can be used alongside PixInsight’s ABE and DBE for optimal results.