fit the histgram

  • Follow


Hi, 

I have a very simple question, I believe some people have done this. I have a image, it is not gray level, it ranges from 0 to 160000. I want to get the histgram of this images. And I want to fit the histgram. Obviously, this histgram cannot be simple gaussion function. So, I want to used gussion added another function to fit it (f=a1*g+a2*anotherfunction). Is it possible using Matlab. Can you please give me some suggestion of the script I may use?


Cheers
Dongsheng 
0
Reply Dongsheng 9/22/2010 3:44:22 PM

On Sep 22, 11:44=A0am, "Dongsheng " <dxh...@bham.ac.uk> wrote:
> Hi,
>
> I have a very simple question, I believe some people have done this. I ha=
ve a image, it is not gray level, it ranges from 0 to 160000. I want to get=
 the histgram of this images. And I want to fit the histgram. Obviously, th=
is histgram cannot be simple gaussion function. So, I want to used gussion =
added another function to fit it (f=3Da1*g+a2*anotherfunction). Is it possi=
ble using Matlab. Can you please give me some suggestion of the script I ma=
y use?
>
> Cheers
> Dongsheng

--------------------------------------------------------------------
For the image histogram, you can still use imhist().
[pixelCounts, intensityValues] =3D imhist(imageArray);
For the fitting of the actual histogram to some theoretical function
you have in mind . . . hopefully someone with the curve fitting
toolbox will answer you.  I don't have that toolbox.
0
Reply ImageAnalyst 9/22/2010 5:00:37 PM


THANKS, I SORTED IT OUT.
DONGSHENG

ImageAnalyst <imageanalyst@mailinator.com> wrote in message <b1701e4b-beda-4fec-b734-0159762e6db7@j2g2000vbo.googlegroups.com>...
> On Sep 22, 11:44 am, "Dongsheng " <dxh...@bham.ac.uk> wrote:
> > Hi,
> >
> > I have a very simple question, I believe some people have done this. I have a image, it is not gray level, it ranges from 0 to 160000. I want to get the histgram of this images. And I want to fit the histgram. Obviously, this histgram cannot be simple gaussion function. So, I want to used gussion added another function to fit it (f=a1*g+a2*anotherfunction). Is it possible using Matlab. Can you please give me some suggestion of the script I may use?
> >
> > Cheers
> > Dongsheng
> 
> --------------------------------------------------------------------
> For the image histogram, you can still use imhist().
> [pixelCounts, intensityValues] = imhist(imageArray);
> For the fitting of the actual histogram to some theoretical function
> you have in mind . . . hopefully someone with the curve fitting
> toolbox will answer you.  I don't have that toolbox.
0
Reply Dongsheng 9/25/2010 9:28:03 PM

2 Replies
160 Views

(page loaded in 0.027 seconds)

Similiar Articles:













7/23/2012 4:10:07 AM


Reply: