# Gaussian Fitting an image in OpenCV

Hey!

So the thing is, I am trying to plot a gaussian fit of an image in OpenCV using any existing functions if available. The sample inputs and outputs are:

Source: https://ieeexplore.ieee.org/document/...

I've been able to generate the MSCN Image, but what's the way to get the plots as mentioned in the above figure? If someone can hint to the right solution, please.

which is the MSCN image ? (none of that mentioned in your link, and paper behind a paywall)

the plotting is for sure not done from opencv, rather from matlab or matplotlib

Well, the MSCN image output is not shared in the paper, but I'll share the link soon.

As far as the plot is concerned, thanks! I'll get a look on stackexchange then. Was just unsure of how this gaussian fitting is done.

sorry, i have no idea ;(

but i found it. figure 2,3,4 here