Menu

Package that provides tools for brain Lithium MRI pre-processing.

Note

This page is a reference documentation. It only explains the function signature, and not how to use it. Please refer to the gallery for the big picture.

limri.norm.hist._hist_matching(source, template, mask, plot=False)[source]ΒΆ

Adjust the pixel values of a grayscale image such that its histogram matches that of a target image.

Parameters

source : np.ndarray

the image to transform: the histogram is computed over the flattened array.

template : np.ndarray

the template image: same dimensions as the source image.

mask : np.ndarray

the mask image: same dimensions as the source image.

plot : bool, default False

plot the matched histograms.

Returns

matched : np.ndarray

the transformed source image.

Follow us

© 2024, Limri developers