Prev: Two-tank system
Next: Ant colony algorithm (ACO)
From: pasino pasin on 9 Aug 2010 03:36 I have similar problem: I have a 2D data, xy plane is my pixels and z axis is the values corresponding to each pixel(like an image). and there is more than one peak. I want to model my z data with Gaussians, how can I fit multi peak Gaussians to my data? Is there such a package of Matlab or any other way, code etc.? Thanks a lot ImageAnalyst <imageanalyst(a)mailinator.com> wrote in message <44188618-68ca-471b-8c5e-2a458c416185(a)q13g2000vbm.googlegroups.com>... > On Jun 2, 2:39 pm, "Kang Soo Lee" <ks-...(a)kaist.ac.kr> wrote: > > Hello. > > > > I'm new at Matlab. > > These days, I'm trying to fit several peaks (~30 peaks) into several Gaussians to the whole array in 2D image which has dimension 313*265. > > > > However, so far, my code can fit only one peak. > > Can any one help me to find out the method? > > > > With best regard. > > --------------------------------------------------------------- > Maybe you can try the "CLEAN" algorithm - it's used in astronomy to > find stars in photos of the night sky. > I think it basically works like this: > 1. find the brightest peak. > 2. if no peak is big or bright enough, exit loop > 3. take neighborhood around the peak and model it to a Gaussian > 4. write modeled Gaussian to an output image. > 5. subtract modeled Gaussian from input image. > 6. repeat steps 1-5 > > Basically you're adding perfect Gaussians to your output image and > removing them from your input image (hence the name "clean"). > Good luck, > ImageAnalyst
From: pasino pasin on 9 Aug 2010 17:02 "Kang Soo Lee" <ks-lee(a)kaist.ac.kr> wrote in message <hu68ga$afo$1(a)fred.mathworks.com>... > Hello. > > I'm new at Matlab. > These days, I'm trying to fit several peaks (~30 peaks) into several Gaussians to the whole array in 2D image which has dimension 313*265. > > However, so far, my code can fit only one peak. > Can any one help me to find out the method? > > With best regard. I have similar problem. I have a 2D data, xy plane is my pixels and z axis is the values corresponding to each pixel(like an image). I want to model my z data with Gaussians, how can I fit multi peak Gaussians to my data? Is there such a package of Matlab or any other way, code etc.? How is your code?
|
Pages: 1 Prev: Two-tank system Next: Ant colony algorithm (ACO) |