image API¶
The image subpackage gives tools to create images from proto-Lightspeed data.
- lightspeedpy.image.get_clipped_image(data_set)¶
Get a bias, dark, flat corrected image from a
DataSetby summing all the detected photons per frame, clipped to zero or 1.- Parameters:
data_set (DataSet) – The proto-Lightspeed data set
- Returns:
The image, crrected for flat and quantum efficiency
- Return type:
array-like
- lightspeedpy.image.get_summed_image(data_set)¶
Get a bias, dark, flat corrected image from a
DataSetby summing all the detected photons per frame.- Parameters:
data_set (DataSet) – The proto-Lightspeed data set
- Returns:
The image, crrected for flat and quantum efficiency
- Return type:
array-like
- lightspeedpy.image.get_weighted_image_linearized(data_set)¶
Get a bias, dark, flat corrected image from a
DataSetafter weighting by the probability of each being real. This function assumes that the true number of photons expected per pixel is << 1.- Parameters:
data_set (DataSet) – The proto-Lightspeed data set
- Returns:
The image, crrected for flat and quantum efficiency
- Return type:
array-like