CStats:Kurtosis
The Kurtosis method computes the skewness parameter for a rectangular region of the image. The kurtosis measures the relative strength of the tails and core of distribution. A distribution that is flatter than the Gaussian Normal distribution is said to be "platykurtic", or flattened, whereas a distribution more centrally peaked than the Gaussian Normal distribution is said to be "leptokurtic", or narrowed. The rectangle and image must have been previously initialized for the CStats object.
nValue, Sdev = CStats:Kurtosis() |
Suppose a CImage named I and a CRect named R exist. The following script fragment measures the kurtosis inside a rectangle on the image:
|
-- create a CStats object |
|
-- specify CImage and CRect to measure |
|
-- returns the kurtosis |
|
-- list the results |
|
-- when done with S, remove it from memory |