Implementation of histogram matching and specification algorithms.
Midway Image Equalization: midway_image_eq.m
A = double(imread("cameraman.tif"));
B = round(sin(0.5*pi*double(A)/255)*200 + 55);
B(B>255) = 255;
V = {A, B};
% Histogram equalize
[U, H_midway, H, H_inv] = midway_image_eq(V);
Dynamic histogram warping of image pairs for constant image brightness