Re: Manipulate Histogram to get specified mean, stddev

From: Martin Leese (please_at_see.Web.for.e-mail.INVALID)
Date: 11/26/04


Date: Thu, 25 Nov 2004 19:22:27 -0700
To:  sbernoeg@vexcel.co.at

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.

-- 
Regards,
Martin Leese
E-mail: please@see.Web.for.e-mail.INVALID
Web: http://members.tripod.com/martin_leese/


Relevant Pages

  • Re: Manipulate Histogram to get specified mean, stddev
    ... > Piotr Stanczyk wrote: ... 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: Manipulate Histogram to get specified mean, stddev
    ... Woods, Digital Image Processing. ... Applying just Tgets you just the histogram equalisation process, ... >>Also specified is the mean and standard deviation of the output histogram. ... >>I now have to compute a LUT that the manipulated output image has a ...
    (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)