opticam.utils.image_helpers

Functions

rebin_image(image, factor)

Rebin an image in both dimensions by summing.

Module Contents

opticam.utils.image_helpers.rebin_image(image, factor)

Rebin an image in both dimensions by summing.

Parameters

imageNDArray

The image to rebin.

factorint

The factor to rebin by.

Returns

NDArray

The rebinned image.

Raises

ValueError

If the image cannot be downsampled by the desired factor.

Parameters:
  • image (numpy.typing.NDArray)

  • factor (int)

Return type:

numpy.typing.NDArray