image = | matchStatsImg (inImg,refImg,criterion) |
image = | matchStatsImg (inImg,refStats,criterion) |
adjust image dynamic range from a reference using statistics matching
This algorithm applies a LUT to the input image so that the set of statistical indicators chosen by the user computed on the input image matches with associated indicators in the reference image.
If the user wants to match the minimum and maximum values:
with and
respectively the minimum and maximum pixel values in input image and
and
respectively the minimum and maximum pixel values in reference image.
If the user wants to match the mean and and the standard deviation:
with and
respectively the standard deviation and the mean of the pixel values in input image, and
and
respectively the standard deviation and mean of the pixel values in reference image.
Input and output images must have same size.