The old Google Groups will be going away soon, but your browser is incompatible with the new version.
2D Gaussian fit
 There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic. There was an error processing your request. Please try again. Standard view   View as tree
 4 messages

From:
To:
Cc:
Followup To:
Subject:
 Validation: For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon.

More options Apr 26 2012, 5:31 am
Newsgroups: comp.soft-sys.math.mathematica
From: zhao...@gmail.com
Date: Thu, 26 Apr 2012 09:31:48 +0000 (UTC)
Local: Thurs, Apr 26 2012 5:31 am
Subject: 2D Gaussian fit
How can I fit a spot on an image to a 2D Gaussian function?
I have a Tiff image file, on it there's an almost round spot, e.g. laser profile.
Is there a way in mathematica to 2D Gaussian fit the spot?

To post a message you must first join this group.
You do not have the permission required to post.
More options Apr 28 2012, 5:23 am
Newsgroups: comp.soft-sys.math.mathematica
From: Szabolcs Horvát <szhor...@gmail.com>
Date: Sat, 28 Apr 2012 09:23:36 +0000 (UTC)
Local: Sat, Apr 28 2012 5:23 am
Subject: Re: 2D Gaussian fit
On 2012.04.26. 11:31, zhao...@gmail.com wrote:
> How can I fit a spot on an image to a 2D Gaussian function?
> I have a Tiff image file, on it there's an almost round spot, e.g.
laser profile.
> Is there a way in mathematica to 2D Gaussian fit the spot?
>

Hello,

The best way to do this would depend on the kinds of images you have
(i.e. how noisy they are, how many spots are there, etc.)

The functions here could be useful to you:

For example ComponentMeasurements will help measure the spot and also
identify its centre.  Then you could cut the spot from the image and
convert it to a matrix so you can use fitting methods such as those
implemented in NonlinearModelFit.

I recommend looking at this blog post as well:

--
Szabolcs Horvát
Visit Mathematica.SE:  http://mathematica.stackexchange.com/

To post a message you must first join this group.
You do not have the permission required to post.
More options Apr 30 2012, 4:46 am
Newsgroups: comp.soft-sys.math.mathematica
From: Cisco Lane <travl...@yahoo.com>
Date: Mon, 30 Apr 2012 08:46:47 +0000 (UTC)
Local: Mon, Apr 30 2012 4:46 am
Subject: Re: 2D Gaussian fit
You might consider a polynomial fit to the logarithm of your data to the logarithm of the Gaussian, (which is a polynomial). A direct fit of the data to a Gaussian will minimize the square of the differences between the data and the Gaussian. This will tend to give large relative errors in the wings, and small relative errors in the spot. A logarithmic fit will minimize the relative errors, rather than the absolute errors. The "percent error" will be roughly the same over the entire field. I don't know if this is acceptable to you or not.

To post a message you must first join this group.
You do not have the permission required to post.
More options May 1 2012, 5:23 am
Newsgroups: comp.soft-sys.math.mathematica
From: FairView <zhao...@gmail.com>
Date: Tue, 1 May 2012 09:23:53 +0000 (UTC)
Local: Tues, May 1 2012 5:23 am
Subject: Re: 2D Gaussian fit
On 4=D4=C226=C8=D5, =C9=CF=CE=E74=CA=B131=B7=D6, zhao...@gmail.com wrote:

> How can I fit a spot on an image to a 2D Gaussian function?
> I have a Tiff image file, on it there's an almost round spot, e.g. laser profile.
> Is there a way in mathematica to 2D Gaussian fit the spot?

I'm kinda new to Mathematica. My above question should be devided into
2 parts:
1) how to read data from TIFF file (i.e. read image into intensity
matrix)
2) hot to fit the retrived data to a 2D Gaussian function