mask_creation¶
This module provides functions to automatically generate camera masks for all-sky imagers.
Functions¶
|
Apply gamma correction to an image. |
|
Create an image mask based on the input image. Input image should be a daily/longterm average image based |
|
Process a list of images by applying optional grayscale conversion, histogram equalization, |
Module Contents¶
- mask_creation.adjust_gamma(image, gamma=1.0)¶
Apply gamma correction to an image.
- mask_creation.compute_mask(avg_img)¶
Create an image mask based on the input image. Input image should be a daily/longterm average image based on equalized histogram to enhance contrast
- mask_creation.aggregate_images(img_list, gray_scale=False, equalization=False, blur=False)¶
Process a list of images by applying optional grayscale conversion, histogram equalization, and blurring. Computes the average and standard deviation of the processed images.
- Parameters:
img_list (list of numpy.ndarray) – List of input images as NumPy arrays.
gray_scale (bool, optional) – Whether to convert images to grayscale (default is False).
equalization (bool, optional) – Whether to apply histogram equalization to enhance contrast (default is False).
blur (bool, optional) – Whether to apply a blurring filter to reduce noise (default is False).
- Returns:
A dictionary containing processed images, their average, and standard deviation.
- Return type:
dict