MATLAB Answers

How to fit multiple Gaussian functions in image without using the Curve fit GUI?

조회 수: 52(최근 30일)
Tara Prasad Mishra
Tara Prasad Mishra 29 Jun 2017
댓글: Massimo Zanetti 11 Jul 2017
I am trying to fit multiple Gaussians in a TEM image. I want to achieve this using coding rather than the curve fitting tool.

  댓글 수: 0

Sign in to comment.


Massimo Zanetti
Massimo Zanetti 29 Jun 2017
Hi Mishra,
here it the function you need fitgmdist.
It does fitting using Gaussian mixture model.

  댓글 수: 3

Tara Prasad Mishra
Tara Prasad Mishra 7 Jul 2017
Hello Massimo, I need 3D Gaussian since there is an intensity component involved with the images. Is there any method to fit multiple 3D Gaussian data?
Adam 7 Jul 2017
fitgmdist is not restricted to 2 dimensions as far as I am aware
Massimo Zanetti
Massimo Zanetti 11 Jul 2017
As Adam says, fitgmdist fits multi-dimensional data. In the doc page you see the input is a matrix X where rows are observations and columns are variable. Therefore, if you are dealing with 3-dimensional data, your matrix X will be size N-by-3, where N is the number of observations.

Sign in to comment.

Translated by