Repair Module Use

Notes from users, documentation addendums.
Post Reply
Guy
Posts: 158
Joined: Thu Feb 19, 2015 8:35 am

Repair Module Use

Post by Guy »

Here are some notes relating to using this module. It is not the only way to use the module and experimentation is encouraged.
Please let me know if anyone sees any errors or has any additional advice they think helpful.
I will update this post as needed.
For an index of similar notes on the other StarTools modules see StarTools Main Window Use.

Repair Module

Purpose:
  • To detect and automatically repair star defects such as those caused by blooming, guiding errors, bad polar alignment, collimation problems, or mirror defects such as astigmatism.
Description:
For a general overview see Repair: Star Rounding and Repair. The Repair module is used to repair severely deformed stars. It complements the Magic module which is used if you just want to reduce the stars size.

Useful Sources
There are a number of useful links in StarTools Links and Tutorials.

The notes below relate to StarTools version 1.5-1.8

When to use:
  • Can only be used when Tracking is off. Towards the end of the processing workflow.
  • Can be used more than once. Using different algorithms perhaps.
Example Workflow (1.5):
AutoDev-{Band/Lens}-Bin-Crop-Wipe-AutoDev(or Develop)-{As needed: Decon/Sharp/Contrast/HDR/Flux/Life}-Color-{Filter}-Denoise-{If needed: Layer/Magic/Heal/Repair/Synth}
Key: {...} optional modules

Example Workflow (v1.6):
AutoDev-{Band/Lens}-Bin-Crop-Wipe-AutoDev (or Develop)-{Contrast/HDR/Sharp/Decon/Flux/Life}-Color-{Entropy/Filter}-Denoise (or Denoise 2)-{Layer/Shrink/Heal/Repair/Synth/Stereo 3D}
Key: {...} optional modules

Example Workflow (v1.7):
{Compose}-AutoDev-{Lens}-Bin-Crop-Wipe-AutoDev (or FilmDev)-{Contrast/HDR/Sharp/Decon/Flux}-Color-{Shrink/Filter/Entropy/SuperStr}-Track/NR-{Layer/Heal/Repair/Synth/Stereo 3D}
Key: {...} optional modules

Example Workflow (v1.8):
{Compose}-AutoDev-{Lens}-Bin-Crop-Wipe-AutoDev (or FilmDev)-{Contrast/HDR/Sharp/SVDecon}-Color-{Shrink/Filter/Entropy/SuperStr/NBAccent/}-Track/NR(Unified-Denoise)-{Flux/Repair/Heal/Layer/Synth/Stereo 3D}
Key: {...} optional modules

Method:
This is a way of using the module To improve the shape of the stars - which should give good results in most cases:
  1. Create a star mask Mask-Auto-Stars-Keep making sure that the stars in the mask are separated by at least one 'off' pixel.
  2. Load the Repair module.
  3. Select the Algorithm - Warp for oval stars, One of the Redistribute modes for more heavily distorted stars.
  4. You can usually leave all other settings at the default values.
  5. Experiment with the settings if the results aren't right.
  6. 'Keep' the result.
What result to look for:
  • Stars should be round and the colour should be well distributed. If not, see the method for 'Improving the Stellar Profile' in the Special Techniques section.
  • Check for artefacts around the corrected stars - increase Grow Mask if they exist.
  • Check for places where two stars have merged into one - if found make sure that all stars in the mask are separated by at least one 'off' pixel.
After Use:
  • Consider using other modules that require Tracking to be off - like Heal, Magic and Synth.
Special Techniques

Improving the stellar profile
This technique is useful in cases where the stars don't look natural. It is described in the video M8 in Color with modest data between 13m32s and 15m11s.
  1. Load the Layer module - keeping the star mask used by the Repair module.
  2. Grow the mask by about 2 pixels or so to make room for the stellar profile to taper off. Mask - Grow.
  3. Set Layer Mode to 'Lighten' and apply a small amount of Gaussian Blur - Filter Type: 'Gaussian (Fg)' - Filter Kernel Radius - say 3-4 pixels.
  4. Optionally increase the Mask Fuzz to blur the edges further.
  5. Experiment with the settings until it looks right. Keep the result.
Description of Controls:

Mask:
For general instructions on using masks see Mask
  • For best results make sure that in the mask all stars are separated by one 'off' pixel - otherwise the stars may be merged.
Algorithm:
Sets the algorithm the Repair module uses when repairing stars:
  • Warp - rounds stars by warping them into shape.
  • Redistribute, Core is Avg Location - Tries to redistribute all starlight pixels. Use where stars are severely distorted by astigmatism or heavy coma where starlight is scattered, out of focus (doughnuts) or otherwise badly distorted. Tries to find the original centre of the star by averaging all the sample locations.
  • Redistribute, Core is Brightest Pixel - As above but sets the centre of the star based on the brightest pixel.
  • Debloom (Vertical Streaks) - Tries to recover stars that were affected by CCD blooming. The algorithn assumes that bloom is in a straight vertical direction and there is negligible rotation.
Grow Mask:
Sets the amount to temporarily grow the mask by.
  • Use a higher value if you can see artefacts around corrected stars.
  • Default is 1 pixel. Range is 0 to 10 pixels.
Radial Samples:
Applies to the Warp algorithm only - Sets the number of samples taken to determine the roundness of a star.
  • A higher value may be needed to correct severely distorted stars but will be slower.
  • Default is 32. Range is 16, 32 or 64.
Sub Sampling
Applies to the Warp algorithm only - Sets the number of subsamples per pixel to use while creating the Radial Samples.
  • A higher value may make the stars more precisely round but will be slower.
  • Default is 4x. Range is 2x, 4x or 8x.
Background Notes:
The Repair module allows for the correction of more complex aberrations than the much less sophisticated 'offset filter & darken layer' method, whilst retaining the star's exact appearance and color.

The repair module comes with two different main algorithms:
  • The 'Warp' algorithm uses all pixels that make up a star and warps them into a circular shape. This algorithm is very effective on stars that are oval or otherwise have a convex shape.
  • The 'Redistribution' algorithm uses all pixels that make up a star and redistributes them in such a way that the original star is reconstructed. This algorithm is very effective on stars that are concave or otherwise heavily distorted, such as stars that look more like patches of light without a distinct core which cannot be repaired using the 'Warp' algorithm.
Post Reply