Borrar filtros
Borrar filtros

GMM & EM algorithm for mammogram classification

2 visualizaciones (últimos 30 días)
bahar h
bahar h el 14 de Jul. de 2012
I try to estimate a mammogram by Gaussian mixture model and then obtain log-likelihood image.I initialize Mu & Sigma with kmeans but when I use gmdistribution command there is an error : "the shared diagonal covariance must be a row vector with the same number of columns as Mu"
or when I want to write code for EM function I face to an error at the first step:"undefined function or method... for input argument of type 'uint8','double','single',...and I don't know what type I should use(my input is an image). I will appreciate if someone guide me what to do. thank you

Respuesta aceptada

Image Analyst
Image Analyst el 14 de Jul. de 2012
When it says "undefined function or method... for input argument" you need to have the function name (which you omitted and replaced by dot dot dot) actually defined somewhere, either in your m-file, or in another m-file on the search path.
  3 comentarios
Image Analyst
Image Analyst el 15 de Jul. de 2012
I don't know about that one. My copy of MATLAB doesn't have anything on GMM.
bahar h
bahar h el 16 de Jul. de 2012
OK Thank you

Iniciar sesión para comentar.

Más respuestas (1)

Ilya
Ilya el 16 de Jul. de 2012
For your first problem, type 'help gmdistribution/gmdistribution' (note that you need to type gmdistribution twice to get the help for the constructor). Or take a look at the doc page here http://www.mathworks.com/help/toolbox/stats/gmdistribution.html The error message is pretty clear.
I also note that you do not need to use kmeans. You can execute gmdistribution.fit to estimate the mixture (yes, by the EM algorithm).

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by