View Single Post
  #1  
Old 07-04-2018, 11:54 AM
rcheshire's Avatar
rcheshire (Rowland)
Registered User

rcheshire is offline
 
Join Date: Apr 2010
Location: Geelong
Posts: 2,617
Asterism - image preprocessing in Linux

This project has matured quite a bit, hence a new thread. It's a novel approach to image calibration but it works and produces comparable results. I believe it has been included in the 'Astronomy Linux' distribution produced by Oleg Astro - Cloudy Nights.

The latest stable version of Asterism has seen a good deal of change and is being maintained, until I am satisfied with it. It is ImageMagick 6 and 7 compatible, including IM compiled from source.

EDIT: New user manual

EDIT: Added histogram viewer

Why another preprocessing utility? Asterism is a product of curiosity. Mainly, coming to grips with the nuts and bolts of image processing to familiarise myself with methods of noise reduction / image calibration with tools widely and freely available.

Having no formal code writing or high end maths, it was a far better thing to use existing image processing programs. The capabilities of ImageMagick were quite a surprise, just scratching the surface. So, with a bit of bash scripting the project took shape and has become something of an obsession.

What does Asterism do? It does a lot of things. Some stand-alone, some integrated and some optional.

Asterism will run a full image calibration routine to a stacked linear image - including background extraction. Alternatively, processes may be run individually.

EDIT: There is no restriction to image input and output format, providing it is recognised by ImageMagick and for RAW files DCRAW. In many cases ImageMagick requires no extension. I have not tried video formats.

For most processing I use a super-bias or defect map and median combined flat (The default behaviour is bias subtraction and flat division of light frames, if bias and flat or master bias and master flat is selected, apart from any other master frame selection - this avoids truncating data. Alternatively, use a defect map and master flat). In-built noise reduction does the rest. Some terms, such as super-bias, have been borrowed from other programmes but the actual process may differ.

Asterism aims to produce a clean (high SNR) image from a set of DSLR RAW images (and other formats), whilst preserving detail. Drop into StarTools (or whatever) without difficult gradient removal or the need for excessive post processing noise reduction. Having said that - noise reduction does begin with image acquisition - particularly dithering.

Asterism also corrects for improperly exposed flats mixed with light frames of varying exposures - the process is configurable. It has a Files manager, an image format conversion utility, a blink utility (for inspecting and rejecting images before committing to processing), a stand-alone image alignment and stacking function (as well as the built-in version); and, if Hugin is installed, a panoramic stitcher and additional alignment and stacking utilities. Recently added an animated histogram viewer.

Manufacturer sRGB channel multipliers may be applied to images to give a little more spark to unmodified RAW data, prior to or post stacking.

System resources are configurable and the default settings are conservative - no freezes, at the expense of processing time.

To trial Asterism use a set of 3 bias 3 darks 3 flats and 3 lights (preferably from the same image set) to create a defect map or super-bias and master flat. Then select Lights and DeBayer Align Stack - and Extract background, if you wish - then select Process on the bottom toolbar.

Links to the latest version and the user manual are found under the Documentation tab.

To install - first install DCRAW ImageMagick, Panotools and Yad. 'bc' and 'find' if not installed by default; then

unzip the Asterism folder to the home directory. Open the folder. Open a terminal in the folder and type ./asterism (Enter) or, if you want to see the whole process, type bash -x ./asterism

It works on my system - but please let me know if it doesn't on another - it should...

(can be installed but best to run from a terminal as described)

Always open to suggestions and bash scripting tips...

Clear skies

Rowland
Attached Thumbnails
Click for full-size image (0-main.png)
82.1 KB36 views

Last edited by rcheshire; 17-04-2018 at 06:40 PM.
Reply With Quote