Hi, I am trying to fit a Gausian Curve over a histogram plot derived from an image. The code for it is as follows:
imhist(maskedRgbImage), title('Histogram of Tumor');
And the output looks like this:
I want to fit a gaussian curve over it,. Something like this:
I found some code related to this. But the problem of implementing them is that these code work with random values like:
But I cannot be able to input the histogram data inside the code. How can I do it? My ultimate objective is to find Mean, Standard Deviation and Variance.