Creating a better starless image with Affinity

6 replies510 views
Shannon Foye avatar
The images below show a method of creating an excellent starless image with Affinity that does not have noticeable artifacts left over in the place of large stars.

Starnet does a great job of identifying nearly every star in an image. However, the manner in which it which fills in the pixels of large stars leaves much to be desired.

The Inpaint function of Affinity does a masterful job of filling in a selected area with the patterns and symmetries that surround it. The method shown below uses the star mask generated by Starnet and the Inpaint function of Affinity to create a starless image.

The saved selection of stars to be Inpainted is based on the star mask. The key to achieving a seamless transition between the Inpainted stars and the surrounding nebulosity is growing the size of the selection until there are no artifacts left over from small stars. The selections of large stars need to be grown much more than is necessary for small stars, so a separate large star selection is created and then combined with the small star selection.

A starless image can be created entirely without using any cursor based tools. However, because the selection is based on a star mask, some areas of bright nebulosity may be included in the selection. If the results are too offensive, the original star mask may need to be adjusted or you can simply remove the unwanted selections with the Selection Brush Tool.

The starless TIFF created in Affinity is used with a mask in PixInsight to overwrite the stars of the original XISF image. The result is a 32 bit XISF starless image with only the pixels of the stars being substituted with the Inpainted stars of the Affinity TIFF.

The integration time of the Ha image used here is 25 hours (300s x 300). The equipment used was an Esprit 100, ASI 183MM, and 3nm Astrodon. The pixel scale is .9 arc sec.

Original
Full resolution Original Ha (saved as a 32 bit TIFF): https://cdn.astrobin.com/images/74298/2021/06692944-378a-4328-9a93-c5f468c5ad12.tif
Link to the original Ha XISF: https://www.dropbox....w/Ha.xisf?dl=0
 
Starless
Full resolution original Ha with the stars overwritten with the Affinity starless TIFF (saved as a 32 bit TIFF): https://cdn.astrobin.com/images/74298/2021/09dcf29f-42d9-401d-9200-a445efc67248.tif
Link to the Original Ha XISF with the stars overwritten with the Affinity starless TIFF: https://www.dropbox....ss Ha.xisf?dl=0
  

1. Preparing the mask


1. Saving the mask as a selection


3. Creating a small star selection


4. Creating a large star selection


4. Combining selections


5. Inpainting the selection


6. Trial and Error


7. Overwriting the stars in the original XISF with the Affinity starless TIFF






Helpful Engaging
Spacetime Pictures avatar
Thank you very much for your work.

I did not knew the existence of Affinity, will definitely give it a go!

Cheers,
Laurent
Respectful Supportive
Shannon Foye avatar
I first learned about it only recently from a thread on CN. The software can be downloaded and used for free for 90 days. The current price is $25.
Well Written
Spacetime Pictures avatar
Shannon Foye:
I first learned about it only recently from a thread on CN. The software can be downloaded and used for free for 90 days. The current price is $25.

Yes, just bought it -50%
Will try it with my next image, with your process!
Stan Volskiy avatar
Thanks a lot! As I understand the main feature  is  "Inpaint" function.
Shannon Foye avatar
Thanks a lot! As I understand the main feature  is  "Inpaint" function.

Yes, the Inpaint function in the Edit drop down menu is the key to the technique described above.

The selection of stars to be Inpainted is  based on a star mask. All of the stars in an image are Inpainted together in one pass of Inpaint. 

All of the stars must be Inpainted together to prevent artifacts from appearing in the Inpainted areas. Inpaint will use the surrounding background patterns (including other stars) to fill in a selected area. However, if nearby stars are also selected, they be excluded from the interpreted background pattern used for Inpainting.
Well Written Helpful Insightful Concise
Alex avatar
I picked up Affinity a few weeks ago with it on sale for $25.  I have not delved into PixInsight and only used APP during the free trial.  I have been using PS with the astronomy action pack and GradientExterminator and stacking in DSS.

Since I picked up Affinity, it's more or less replaced DSS, PS, and the action pack/plugins I had for PS.  GradientExterminator does work with Affinity, but the image needs to be converted to 16bit.  The Inpainting, the Astrophotography Neutralize Background filter, and having live filter and adjustment layers for a very non destructive workflow has been a good improvement for me overall.  I've been very happy with it.

Very good walkthrough on the Inpainting function.
Helpful Engaging
Related discussions
How I used the FastIntegration process to integrate over 50K sub exposures of M81!
This image is the result of my Fast Imaging project in an attempt to produce my most detailed image of Messier 81 from a light very polluted area. This project began in December of 2023 and though a lot of trial and error, research, and a high electr...
Mar 18, 2024
Both posts discuss astrophotography image processing techniques and projects aimed at improving the quality of astronomical images.