Path: news.mathworks.com!not-for-mail
From: "Mengxin SONG" <smx666.student@sina.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Histogram Specification
Date: Thu, 16 Oct 2008 15:02:01 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 15
Message-ID: <gd7l19$7iu$1@fred.mathworks.com>
References: <gc888q$fuk$1@fred.mathworks.com>
Reply-To: "Mengxin SONG" <smx666.student@sina.com>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1224169321 7774 172.30.248.38 (16 Oct 2008 15:02:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 16 Oct 2008 15:02:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1411779
Xref: news.mathworks.com comp.soft-sys.matlab:495632


"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