CStats:SetImage
The SetImage method assigns a CImage object to the CStats object. Statistics will be measured for this CImage.
CStats:SetImage( CImage ) |
|
Suppose a CImage named I exists. The following script fragment initializes CStats for computing statistics inside a rectangle on the image:
|
-- create a CStats object |
|
-- specify the CImage to be measured |
|
-- specify the CRect to be measured |
|
-- returns the mean and standard deviation |
|
-- when done with S, remove it from memory |