|
"David Doria" <daviddoria@gmail.com> wrote in message <gc888q$fuk$1@fred.mathworks.com>...
> In the doc for histeq(), it says you can specify a histogram with
>
> histeq(Original, hist);
>
> My question is, can you use the result of imhist() as this hist specification? It seems there are two outputs to imhist, [counts, x]. If you pass 'counts' as 'hist' to histeq(), it seems that it wont know about the position of the bins, as they are given in 'x'.
>
> What I'm trying to do is turn the histogram of image A into that of image B, rather than specifying a function (bimodal, etc) explicitly for the "histogram specification".
>
> Thanks!
> Dave
hello Deve:
I have the same question.I tried to pass the result of imhist(I) to the histeq(I,hgram),because I found the result of imhist(I) is a vetor,which is needed by the parameter hgram.
But I don't know whether it's right
|