Thread Subject: Histogram Specification

Subject: Histogram Specification

From: David Doria

Date: 4 Oct, 2008 17:14:02

Message: 1 of 2

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

Subject: Histogram Specification

From: Mengxin SONG

Date: 16 Oct, 2008 15:02:01

Message: 2 of 2

"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

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
histogram speci... harish sahu 30 Sep, 2009 01:04:49
rssFeed for this Thread
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com