CStats:SdevValue
The Sdev method computes the standard deviation inside a rectangular region relative to a specified mean value.
nSdev = CStats:SdevValue( CImage, nMeanValue, CRect ) nSdev = CStats:SdevValue( CImage, nMeanValue ) nSdev = CStats:SdevValue( table, nMeanValue ) |
CRect is a bounding rectangle for the CImage object.
table is a 1-dimensional array containing numbers.
On success, returns the standard deviation1.
On failure, returns 0.
Suppose a CImage I and a CRect R exist. The following script returns the standard deviation relative to the simple arithmetic mean value inside a rectangle on the image. The following script returns the standard deviation relative to a specified mean value inside a rectangle on the image:
|
-- create a CStats object |
-- specify CImage and CRect |
|
|
-- return the standard deviation relative to nMean |
|
-- list the results |
|
-- when done with S, remove it from memory |
CStats class, CImage class, CRect class
Mira Pro x64 Script User's Guide, Copyright Ⓒ 2023 Mirametrics,
Inc. All Rights Reserved.