this one is something that I have been working on in the background for quite some time, but it's now finally ready to make it available to everyone.
Stellar Colour Calibration is a new tool in SharpCap Live Stacking that can automatically colour balance your images based on matching up the measured colours of stars in the image with the known colours of those same stars from star catalog data. If, for example, all of the image star measurements show significantly more green than the corresponding data from the star catalogs, the white balance needs to be adjusted to reduce the green brightness (or, equivalently, to turn the red and green up).
You might have previously used similar tools in other processing applications such as PixInsight or Siril - often these tools are called 'Photometric Colour Calibration' - mostly they work in similar ways, requiring at least the following to work properly
- A decent selection of stars able to be detected in the image - ideally several hundred
- Plate solving information for the image so that image stars can be matched up with catalog stars
- A catalog of stars containing colour information
Using the tool is relatively simple - once you have a live stacked image (let a few frames stack so the image noise has started to reduce), go to the 'Colour Calibration' tab in live stacking and press the 'Calculate' button.
The first step will be for SharpCap to plate solve the image - regardless of your normal plate solving settings, this will *always* use SharpCap's built in SharpSolve plate solving engine as it is important that the plate solve results match the star co-ordinates in the SharpCap database as accurately as possible. SharpSolve will work down to about a 0.5x0.5 degree field of view with the default database or 0.25x0.25 with the optional larger database downloaded. Note that if you are not using a GOTO mount then the plate solve will have to search the whole sky and may take up to a minute or so.
Once the plate solving is complete, the rest of the process - detecting stars in the image, measuring their colours, matching them with catalog stars and determining the relationship between catalog colours and image colours and how to correct the image colours is usually very fast - just a second or two.
Here's an example of a stack of the Horsehead/Flame region using an IMX533 camera with no colour correction, just a stretch in live stacking. The image is dominated by excess green caused by the sensor's high sensitivity to green picking not only more green from the target but also more green from the skyglow.
And here's the same region after using the one click Stellar colour calibration function
The tool makes three main adjustments:
- Automatically sets the three colour balance sliders you find in the live stack histogram tab to values calculated to correct for colour casts introduced by the camera
- Automatically turns on the live stacking background subtraction function and sets the subtraction levels for R/G/B to remove the skyglow background from the image back down to a neutral background very close to black
- (Optionally) auto set the image stretch on the Live stack histogram to give a reasoably well stretched image
Here, you have on the left some text summarizing the results of the process, including the number of stars found in the image, the number of stars matched with catalog stars and the resulting R/G/B colour balance adjustments and background subtraction values.
The two graphs show the distribution of star colours in the image (vertical axis) vs the catalog (horizontal axis) for two measures of colour - 'G-R magnitude' and 'B-G magnitude'. G-R magnitude is simply the magnitude of the star in the green less the magnitude in the red. Since higher magnitudes mean dimmer stars, a positive G-R means that the green is dimmer than the red, while a negative means the green is brighter.
The crosses on the graphs indicate the measurements for individual stars, whereas the dots are averages of groups of stars with similar catalog colours. For this process to work, it's essential that there is a clear pattern relating the catalog and image values for G-R and B-G. This might be a straight line (as seen in the G-R on the left) or a curve (as seen in the B-G on the right). If there is a lot of random spread in the individual measurements (probably due to a noisy image) then the process may fail if it cannot detect a relationship from either the individual measurements or the grouped data.
The vertical dashed line in each graph highlights the colour of a white reference object in the catalog data - the corresponding dashed horizontal line shows how that white object would be coloured in the image, and it's the G-R and B-G values for those horizontal lines that are the results needed from the whole process... Those values give allow the image colour of an object that is really white to be worked out, which then allows the calculation of the colour balance adjustments needed to turn it back to a true white.
If you don't like the default colour results, you can change the reference colour being used from the 'Default' white to one of the listed star colours from deep red stars (M/K class) to white/blue stars (B/A class). Note that the results of this might be opposite to what you expect - if you choose a red class of star as being the reference white colour, the calculation will try to make that type of star appear white in the image, making the whole image bluer and less red to achieve this. Similarly, choosing a blue type of star as the reference will lead to a red image.
Obviously, once you have used the auto calculation feature of Stellar Colour Calibration, you can use the manual colour balance (and background) adjustment sliders to make further tweaks to get your image looking just how you want it. You may also find that the calculation needs re-running as the stack progresses - particularly if changing conditions lead to a drift in the background levels of the stack.
If you have problems, first check the text summary shown in the 'Colour Calibration' tab to see if that explains what went wrong (too few stars, failure to plate solve, etc). You can also check the SharpCap log for more information. If the process fails on an image that it seems it should succeed on, or if it gives bad results, please use the 'Save as 16 bit stack' button to save your stack to a FITS file and share that FITS file with me so that I can investigate.
Note that the Stellar colour calibration is a SharpCap Pro feature.
cheers,
Robin