Gaussian fit to hist3()

3 visualizaciones (últimos 30 días)
Beatrice Pedretti
Beatrice Pedretti el 28 de Jul. de 2021
Comentada: Beatrice Pedretti el 28 de Jul. de 2021
Hello, I am trying to obtain the mu and sigma parameters from a 3D histogram colormap.
My code is the following:
biny = ceil(Par.cryst_lung_y/Par.pixel_image);
binx = ceil(Par.cryst_lung_x/Par.pixel_image);
% biny and binx are two integers
y_image = [output.y_rec 0 Par.cryst_lung_y];
x_image = [output.x_rec 0 Par.cryst_lung_x];
%vectors representing the x and y positions
[Counts,Centers]=hist3([y_image' x_image'],[biny binx]);
I would like to know if it is possible to obtain the sigma parameter in particular, considering the counts and centers. Any tips would be greatly appreciated, thank you in advance.
  2 comentarios
Adam Danz
Adam Danz el 28 de Jul. de 2021
This function on the file exchange may be what you're looking for
Beatrice Pedretti
Beatrice Pedretti el 28 de Jul. de 2021
Thank you very much Adam!

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Fit Postprocessing en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by