Re: Manipulate Histogram to get specified mean, stddev

From: Piotr Stanczyk (piotr-s_at_NOSPAM.moving-picture.com)
Date: 11/29/04


Date: Mon, 29 Nov 2004 10:05:43 GMT

Having re-read the original post, I rather think you may be right on
that. Thanks for point that out.

Piotr

Martin Leese wrote:
> Piotr Stanczyk wrote:
>
>> You will find quite a good treatment of this in the book by Gonzalez
>> and Woods, Digital Image Processing.
>>
>> I'm going by memory on this, but this can be viewed as a histogram
>> matching problem. So, this is usually explained in 2 steps.
>>
>>
>> Let T(x) be the cumulative probablity distribution function of the
>> input image. Get this by summing up the pdf, ~historgram, to x
>>
>> -- x
>> \ hist(x) = T(x)
>> /
>> -- 0
>>
>> Applying just T(x) gets you just the histogram equalisation process,
>> from here you can apply the mapping that will give you the
>> charactersitics you require ...
>>
>> Let G(y) be the cumulative probablity distribution function of the
>> output image. Since you have the pdf given to you via the mean and
>> stddev, you can construct a Gaussian pdf with these values
>>
>> Then the tranformation you want is:
>>
>> inv{G} (T)
>
>
> This will not only change the mean and stddev, but
> will also force the shape of the histogram to be
> Gaussian. My guess is that this is not what the
> original poster wanted.
>
> Jon Campbell's post contains a formula which
> changes the mean and stddev, and also preserves
> the shape of the histogram. Please ignore the
> formula in my previous post to this thread as it
> is wrong.
>
> The original poster asked for a look-up table. To
> create this, simply apply Jon's formula to values
> from 0 to 255 and store the result.
>



Relevant Pages

  • Re: Manipulate Histogram to get specified mean, stddev
    ... > Woods, Digital Image Processing. ... Get this by summing up the pdf, ~historgram, to x ... > Applying just Tgets you just the histogram equalisation process, ... > stddev, you can construct a Gaussian pdf with these values ...
    (sci.image.processing)
  • Re: Transforming a sparse histogram to a Gaussian histogram
    ... I want to convert a natural image (which has a sparse historam ... distribution) to an image with a Gaussian histogram distribution. ... it is a generalisation of histogram equalisation --- where the desired pdf is the uniform pdf. ...
    (sci.image.processing)
  • Re: How to find PDF from Histogram
    ... Compute some key parameters for that type ... from the histogram ... Plot the PDF for these parameters on top ...
    (comp.soft-sys.matlab)
  • Re: pdf with skew and kurtosis
    ... I will look at PEARSRND and JOHNSRND. ... What I'm really looking for is to overlay a pdf on a histogram. ...
    (comp.soft-sys.matlab)