CStats:Init
The Init method assigns both a CImage object and a CRect object to the CStats object. Statistics will be measured for this CImage inside the rectangular region specified by the CRect.
CStats:Init( CImage, CRect ) |
Suppose the following objects exist and are initialized to valid data: a CImage named I, and a CRect named R. The following script fragment initializes the CStats for computing statistics inside a rectangle on the image:
|
-- create a CStats object |
|
-- specify CImage and CRect to measure |
|
-- returns the mean and standard deviation |
|
-- when done with S, remove it from memory |