GraXpert Deconvolution sharpens an image with the AI models of GraXpert, a separate program that we run for us, either the objects (nebulae and galaxies) or the stars. It needs a GraXpert that has deconvolution, which the stable release did not have when we wrote this page. GraXpert is not part of DSPX: we install it ourselves.

Categories
  • Sharpening
Keywords
  • GraXpert
  • deconvolution
  • sharpen
  • objects
  • stars
  • AI
  • external program
  • strength
  • PSF
  • seeing
  • batch size
  • model

1Introduction

GraXpert is free software for astrophotography, made by its own authors and available from its own website. Newer releases add deconvolution to its denoising and background extraction, with one AI model for the objects and one for the stars. This process takes the image of the panel, hands it to the GraXpert installed on this computer, waits for it, and replaces the image with what GraXpert made. The result goes through the image's mask and selection and makes one history step, like the result of any other process.

DSPX ships nothing of GraXpert and downloads nothing of it. GraXpert itself is free software under the GPL-3.0, and the AI models it uses have their own license, Creative Commons BY-NC-SA 4.0, which is for non-commercial use. They are separate software, and their licenses are theirs.

The process is in the Process menu always, but it runs only with a GraXpert that has the command. In Edit > Preferences > External Programs the Check button asks the installed program which commands it has and shows them. Once it has been checked and the program has no deconvolution, this process says so and does not run; a program that was not checked is simply tried.

M106 before and after GraXpert Deconvolution
A galaxy deconvolved. Left, part of a linear image of M106 through an automatic screen stretch; right, after GraXpert Deconvolution with a strength of 0.5.

2Quick Start

  1. Install a GraXpert that has deconvolution, and tell DSPX where it is in Edit > Preferences > External Programs. Press Check to see that it lists deconvolution among its commands.
  2. Open the image and choose Process > Sharpening > GraXpert Deconvolution.
  3. Choose what to sharpen, Objects or Stars, and set the Strength.
  4. Click Apply. The Log shows what GraXpert says while it works.

3Interface & Parameters

The panel has two sections, Deconvolution and Model, then the image the process applies to, the buttons and the system bar along the bottom. There is no live preview: GraXpert is slow, so the process runs when we click Apply.

The GraXpert Deconvolution panel
The GraXpert Deconvolution panel. The Deconvolution section, then the Model section.

3.1Deconvolution

Sharpen: What GraXpert sharpens:

Strength: How much the image is sharpened, from 0 to 1. 0.5 by default, as in GraXpert.

PSF size: The size of the seeing to undo, as GraXpert takes it. 0.3 by default, as in GraXpert.

Batch size: How many image tiles GraXpert processes at once, from 1 to 32. 4 by default. A larger batch is faster and needs more memory, on the graphics card or the processor.

3.2Model

Model version: The version of GraXpert's AI model, written as three numbers such as 1.0.0. Empty, the default, uses the latest one GraXpert has. A model that GraXpert does not have on this computer yet is downloaded by GraXpert itself.

3.3Apply, Reset and the Preview

Apply writes the image to a temporary file, runs GraXpert on it, reads the result and replaces the image with it, in one history step that Undo takes back, through the image's mask if it has one. The panel shows the progress GraXpert reports, and the Cancel button stops GraXpert and everything it started. The image keeps its size, its channels and its sample type; integer images get the result clipped to their range, so nothing wraps around. Alpha channels and the image's metadata, astrometric solution included, are not touched.

4How We Run GraXpert

We want to be exact about what DSPX does on this computer.

5When Something Goes Wrong

6Usage Tips and Tricks

Objects and stars separately. Run the process twice, once for each, with a star mask or a starless image for the one that needs it, and compare the results with Undo.

Start gently. Apply at a low Strength first. A deconvolution that is too strong shows as rings around the stars and as texture in the background.

Deconvolution: our own Richardson-Lucy deconvolution.

Deep Sharpen: sharpening with our own AI model.

GraXpert Background Extraction: GraXpert's gradient removal.

GraXpert Denoise: GraXpert's noise reduction.