plot probability density function of 2d data

Hi!
I need to find if the parameters in a 2D matrix (as in case of an image) are in normal form or not. I hence want to know how to plot the probability density function of the image as well as perform the KS test.

回答 (1 件)

the cyclist
the cyclist 2011 年 8 月 17 日

0 投票

You don't provide much detail, but as a start maybe you could look at the hist() function for plotting, and the kstest() function for Kolmogorov-Smirnov test. You might also be interested in ksdensity() function.

2 件のコメント

Rashi
Rashi 2011 年 8 月 17 日
yeah..but I actually want to ascertain whether the points on an image follow a particular distribution or not.
Image Analyst
Image Analyst 2011 年 8 月 17 日
Do you mean that the values of the image follow a certain shape, like it would look like a Gaussian if you were to display it with the surf() function, OR do you mean that the distribution of the intensity values is a Gaussian, for example a flat, relatively uniform image with some small amount of noise superimposed on those uniform gray levels? If you mean the latter, then hist() will get you the distribution.

サインインしてコメントする。

質問済み:

2011 年 8 月 17 日

Community Treasure Hunt

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

Start Hunting!

Translated by