opticam.utils.image_helpers

Functions

rebin_image(image, factor)

Rebin an image by a given factor in both dimensions.

Module Contents

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

Rebin an image by a given factor in both dimensions.

Parameters

imageNDArray

The image to rebin.

factorint

The factor to rebin by.

Returns

NDArray

The rebinned image.

Parameters:
  • image (numpy.typing.NDArray)

  • factor (int)

Return type:

numpy.typing.NDArray