opticam.utils.image_helpers =========================== .. py:module:: opticam.utils.image_helpers Functions --------- .. autoapisummary:: opticam.utils.image_helpers.rebin_image Module Contents --------------- .. py:function:: rebin_image(image, factor) Rebin an image in both dimensions by summing. Parameters ---------- image : NDArray The image to rebin. factor : int The factor to rebin by. Returns ------- NDArray The rebinned image. Raises ------ ValueError If the image cannot be downsampled by the desired factor.