nanopyx.core.transform.mpcorrector

def macro_pixel_corrector(img: numpy.ndarray, magnification: int) -> numpy.ndarray:

Corrects the macro-pixel effect.

Parameters

img : np.ndarray The input image to be corrected. magnification : int The magnification factor used.

Returns

np.ndarray The corrected image.