Detection Masks - aaronwmorris/indi-allsky GitHub Wiki

Overview

The default detection mechanism in indi-allsky selects a rectangular region in an image to perform star and meteor detection. This works well when you have an unobstructed view, but this is not always the case.

The detection area for stars and meteors should be unobstructed. Gaps in tree leaves can cause false positives in the star detection. Contours of trees and houses can be detected as lines in the meteor detection.

Masks allow you to more specifically crop areas of an image.

Generating the Mask base image

indi-allsky generates a new base mask image every time the program is started, once a stable exposure is found. You can download the base image from the Tools -> Mask Base view.

Mask orientation and geometry

You may notice the Mask Base image is flipped from the normal images generated by the system. This is normal and expected. The detection mask needs to be based on the original image that received by the camera, before the image is flipped, scaled, rotated, etc.

Default Region of Interest

Using the following image as an example. unmasked_example

The default Region of Interest [RoI] for this image looks like this. The central region is automatically calculated based on the dimensions of the image. default_roi

Detection Mask

Using a Mask, arbitrary boundaries can be set to exclude/include only specific areas of the image. White areas of mask are retained, while black areas are masked out.

Mask: asi385_mask

Using this mask, the resulting detection area looks like this. masked_stars Note: The edges in the mask need some distance between contours of obstructions and the edge of the mask due to the blurring that is applied for line detection. This mask is exaggerated just for demonstration purposes.

Line Detection

A straight line in the mask will be detected as an edge/line in the meteor detection code. indi-allsky will blur the edges of the detection mask to prevent false positives due to the mask. mask_blur_linedetect