CStats:Min
The Min method computes the minimum value inside a rectangular region of the image. The rectangle and image must have been previously initialized for the CStats object.
nMinValue = CStats:Min() |
Suppose a CImage named I and a CRect named R exist. The following script fragment returns the minimum value inside a rectangle on the image:
|
-- create a CStats object |
|
-- specify CImage and CRect to be measured |
|
-- returns the minimum value |
|
-- list the result |
|
-- when done with S, remove it from memory |