"Bruno Luong" <email@example.com> wrote in message <firstname.lastname@example.org>... > "K M" wrote in message <email@example.com>... > > > > > hist(fun(I)) is approximately hist(J) and thus does operate on the input space ? > > But if > fun = @(c) a*c + b > and > count is the histogram values, then > > a*count + b is _not_ the histogram of the hist(fun) > > To compute hits(fun) you need apply fun on the *bin* then to interpolate to get the count. > > Bruno
Thank you for your comment.
However, I do not understand how applying fun on the bins of the histogram would help me find the coefficients of the transformation, such that the histogram of the new transformed image is matched to the reference J. Apologies if I am missing something very straightforward.