Path: news.mathworks.com!not-for-mail
From: "David Doria" <daviddoria@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Histogram Specification
Date: Sat, 4 Oct 2008 17:14:02 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 10
Message-ID: <gc888q$fuk$1@fred.mathworks.com>
Reply-To: "David Doria" <daviddoria@gmail.com>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1223140442 16340 172.30.248.37 (4 Oct 2008 17:14:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sat, 4 Oct 2008 17:14:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1105197
Xref: news.mathworks.com comp.soft-sys.matlab:493619


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