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

Contact us at files@mathworks.com