Affinity Photo Astroimaging Tutorial (1)

An article in the author’s Astronomy Digest  – https://www.ianmorison.com

This describes the processing of 30, 20 second exposurestaken of the open cluster M41 that lies below Sirius in Canis Major.  Though sparse, it is one of the prettiestopen clusters in the skies as, amongst the hot blue stars in the cluster, are anumber of red giant stars which appear orange in colour.  They were taken during some rapid first testsof the (excellent) TS-Optics 90mm f/6.6 triplet APO refractor.  The images were captured with an Altair Astro294C CMOS colour camera.

Calibration Frames –or lack of

No dark, flats or bias frames were taken for this briefimaging test – as none were needed.  Dark frames are very useful to eliminate the effects of dark current,amp glow and hot pixels.  However, thesefew frames of M41 were taken from an urban location at a very low elevation,thus the sky noise would totally dominate the noise in the image so the effectsof dark current and amp glow would not be apparent.  However the effects of hot pixels could stillbe visible in the stretched final image but stacking software will often removethem.  Flat frames allow one to removethe effects of vignetting towards the corners of the frame, but using a Micro4/3 sensor this would not be apparent. [If there is significant light pollution the image, this (as will beshown) enables a perfect light frame to be produced from the stacked imagewhich can be then be incorporated if the data is aligned and stacked a secondtime.]  If dark frames are taken – asthey should be – at the same sensor temperature, exposure and ISO as the lightframes then the bias current is included so there is then no need to take anybias frames.  [This does not seem to bewidely known but, I promise you, is true.]

An introduction tothe workspace for those new to Affinity Photo

This section for newcomers to the program and describesthose features of Affinity Photo that are used in the tutorial.

The tools palate is a vertical bar on the left hand side ofthe image space.  The required toolsymbol is simply clicked upon to activate. Those used in this tutorial are the ‘crop tool’ and the ‘paint brush’tool that lies below the colour disk.

Across the top of the workspace lie some drop down menus:

In the ‘File’ submenu, one can open and export (rather thansave) a file and initiate the aligning and stacking procedure that is availablein the 2021 upgrade to the software.

In the ‘Edit’ drop down menu one can ‘undo’ or ‘redo’adjustments that have been made to the image and also activate the ‘Inpaint’function.

In the ‘Document’ drop down menu one can convert the format to, say, reduce it’s size or change the bit-depth of an image.

In the ‘Layer’ drop down menu one can ‘Duplicate’ a layer or‘Merge Down’ two or more layers.

In the ‘Filters’ drop down menu one can go into the ‘Blur’drop down menus to apply the ‘Median’ blur used when removing the lightpollution in the image.

At the top right one can select the colour of the paintbrush.  Below are a set of adjustmenttools.  Clicking on, say, the levels toolthree options may be brought up; ‘Default’, ‘Darken’ and ‘Lighten’.  The default modes are used in this tutorialand, when clicked upon, bring up the tool window.  To immediately apply its effect afteradjustment, as will be done in this tutorial, one clicks upon the ‘merge’ tab.

The use of layers

When a tool, such as ‘Levels’ is used to alter an image, AP produces an ‘Adjustment Layer’ thatsits above the preceding layer and these will build up as more tools are usedunless they are ‘merged’ after each tool is applied.  Advanced users will keep multiple layersactive – which has the advantage that any single adjustment layer can bealtered later if desired without affecting any of the other adjustmentsmade.  This is quite hard to describe ina tutorial and so I will use the approach where each adjustment layer is mergedimmediately after its application so only one layer remains active.  If necessary, within the ‘Edit’ drop downmenu one can backtrack as many steps as one wishes to get back to anintermediate step that one is happy with.  At certain points within the editing process I will ‘export’ the currentversion of the image so that, should I need to leave the program or shouldit  crash, I will be able to continue onfrom that point.  I have found that,occasionally, AP has crashed when, asa novice, I have made some mistakes in using it.  On a couple of these occasions, this requireda hard reset of the computer.  Theprogram also crashed when it somehow ‘disapproved’ of two out of 45 tiff filesthat I had been attempting to stack.  [Ihad to find them by trial and error.]

Stacking the Image

In the ‘Edit’ drop down menu, ‘New Astrophotography Stack..’ is clicked upon and, over to the right of the screen the ‘Files’ input window is brought up with the ‘Light’ subframe type selected.  Clicking on ‘Add Files’ one can select the subframes to be aligned and stacked. 

Once selected, one clicks on ‘Stack’ at upper left of the screen to initiate the process – which takes quite some time. 

Finally, when completed, on clicks on ‘Apply’ at the upper left of the screen to give the stacked image as a 32 bit file.  [The image appears green as the astro colour camera is more sensitive to the green part of the spectrum.]

In case one needs to return to this point, it can be worthwhile to ‘Export’ this file: clicking on ‘Export’ in the File drop down menu brings up a window allowing one to select the format and bit depth of the exported file. (Usually Tiff 16 bit)

Removing the sky glow(light pollution)

Though, in this case, there is no need to process the data in 32-bit depth, this will be left unchanged.  The image is duplicated within the layers drop down menu and the upper layer changed to 16 bit within the ‘Document’ pull down layer – convert format. 

The ‘Median’ filter (Filters> Blur> Median) is applied with a radius of 90 pixels and the stars, magically, disappear.  [Incidentally, if there is a reasonable amount of sky glow (light pollution) in the image, this makes a very good ‘Flat’ frame.]

In the Layers blend mode drop down menu, ‘Subtract’ isselected with an opacity of 100% and then clicking on ‘Merge Down’ in the Layersdrop down menu produces an image with a totally black sky background.  [Many astophotographers do not like a totallyblack sky background, so at the end of the imaging process, this can be addressed.]

Cropping the Image

The crop tool was selected from the Tools panel at left and the image cropped down to just cover the cluster.

Stretching of the image to bring out the fainter stars

There are several ways of stretching the image one caneither use the curves function or, as in this case, the levels/gamma methodwhich works well with this data set.

The image is opened and, in the ‘Adjustments’ panel on left, ‘Levels’ is clicked upon which brings up three small panels. The ‘Default’ levels adjustment tool is opened.  Within its window, the gamma slider is moved to give a value of, say, 0.8.  One will see that the fainter parts of the image increase in brightness more that the brighter parts – thus producing some image stretching.  Two applications allowed the sky background level to become obvious.

The same ‘levels’ procedure can then be applied again to bring out the fainter stars.

This additional stretching may bring up the background level and use of the ‘black point’ slider in the levels command can reduce this if necessary.

Increasing the colour saturation

The ‘HSL’ adjustment tool is opened up and the saturation slider is moved over to the right to increase the saturation.

The result:

Adding some background brightness

I desired, one can uniformly increase the sky background to that the sky is not totally black.  The image is duplicated and the upper layer is painted a dark grey.  

If the layers blending mode is set to ‘Add’, the opacity of the upper layer can be adjusted to a low amount to brighten the sky background and give the final result.

The Open Cluster M41

This is not an excellent image as it was taken from an urban location and, as it is at a very low elevations, sky glow will have masked the fainter stars in the cluster.  But I hope that it will guide you through the steps required to do better from a dark sky location.  It is a very nice open cluster!

[Note: As M41 is at a very low elevation, atmospheric dispersion will misalign the red, green and blue channels of the stellar images – particularly the red. The image can be imported into Registax 6 (free) and pixel adjustments can be made to the Red and Blue channels to align them. In this case the red channel was adjusted by 2 pixels.]

Return to Astronomy Digest home page

© Ian Morison