Site logo, www.grelf.net
 

Processing steps for astrophotographs

 

This process is available on the batch menu of GRIP. Since January 2010 there are two versions on that menu:

Selecting either of the above two options from the batch menu results in the following dialogue being displayed. Its title shows which option was selected: the title is either "Astro COMBINE" or "Astro WARP".

The astro-process dialogue

 Controls in the astro-process dialogue

 

 Dark frames

The original plan was to identify dark frames automatically among the sequence of images and then, for each real image, to subtract the dark frame which was taken at the nearest time. The identification of dark frames proved to be unreliable so a simpler approach has been adopted. It is now assumed that you have used the averaging batch process on a series of dark frames beforehand. The dialogue explained above asks whether there is such an averaged dark frame and where it is.

There is more about dark frames here.

   

 Flat fields

Since version 8.1.21 of GRIP it has been possible to use flat field images, if available, for the telescopic process. A flat field is a photo of a uniformly illuminated white area, completely filling the frame. This must be photographed with exactly the same optical arrangement as the images for which this is to be used to correct.

There is more about flat fields here.

 The steps of the process

Here is a combined description of both the lens and telescope processes as they stand now:

  1. User selects an arbitrary number of image files to process. They must be all in the same format but that may be RAW if the particular RAW format from the camera can be read by the jrawio library (find that out by trying to open a RAW image file in GRIP before starting this process; if it fails it will be necessary to convert the images to TIFF through other software before starting this process)
  2. The user selects an averaged dark frame image (if there is one); it is loaded; if it is RAW it is interpolated, scaled and its dark margin trimmed (as set in the configuration menu)
  3. If in the telescope process: the user selects a flat field image (if there is one); it is loaded; if it is RAW it is interpolated, scaled and its dark margin trimmed (as set in the configuration menu)
  4. Pass 1: for each image file
    1. load the image from file
    2. if the image was in RAW format, do the necessary interpolation and scaling and trim its dark margin (as set in the configuration menu)
    3. if there is a dark frame, subtract it
    4. if there is a flat field image, divide by the flat field image.
    5. if selected by the user, correct background
    6. if gnomonic projection selected by the user, find lens focal length mm from metadata and do inverse gnomonic projection
    7. if the image has been modified by any of the preceding steps, save the adjusted image as a temporary file in TIFF format
    8. determine a threshold for each channel (red, green, blue):
      1. find mode (assumed to be mean of background)
      2. find standard deviation
      3. threshold is 4 standard deviations above mode (4 is a configurable parameter)
    9. apply the threshold to all pixels threshold and detect contiguous blobs
    10. list the positions of the centres of the brightest N objects (N is a configured parameter; see the configuration menu)
  5. Analyse the positions measured in all the images to match brightest blobs between images
  6. Pause to let the user reject some matched objects (not usually necessary, but in case some non-star objects have been matched). This is done by displaying a diagram of all the matches and asking the user to draw rectangles intersecting the match trails which are to be rejected. Here is a portion of an example of such a diagram (the diagram is displayed as an image in GRIP's usual way, so it can be manipulated and saved also). Extract from a diagram of star matches
    This diagram shows part of the constellation of Andromeda. Numbering starts at 0 and roughly increases as measured star brightness decreases (though it is really more complex than that). Confirmation is sought before each trail is deleted.
  7. Pass 2: for each image
    1. load the image from file (from the temporary file if one was made in pass 1)
    2. use the measurements from pass 1 to warp the image slightly, like a rubber sheet, so its brightest objects fit over the brightest objects in the middle image in the sequence
    3. add the warped image into an accumulator image (32 bits per channel)
    4. delete the temporary file, if there is one
  8. Present a curves dialogue to allow the user to adjust contrast as the result is read out from the 32-bits-per-pixel accumulator back into a normal 16-bits-per-channel image.
  9. Save the result as a file called processed.tif in GRIP's own directory, as a safeguard in case the user forgets to save it.
  10. Display the result in the usual GRIP image frame with all menus available.

As of version 9.11.25 of GRIP another window opens at the end of the batch astro-process to summarise the displacements between all the images that have been processed. An example can be seen here.

Next page