CStats:Rank
The Rank method computes the rank percentile value inside a rectangular region of the image. The rectangle and image must have been previously initialized for the CStats object.
nValue, Sdev = CStats:Rank( nPercentile ) |
Suppose a CImage named I and a CRect named R exist. The following script fragment returns the value for rank percentile 32.5 inside a rectangle on the image:
|
-- create a CStats object |
|
-- specify CImage and CRect to measure |
|
-- returns the value at the 32.5 percentile |
|
-- list the results |
|
-- when done with S, remove it from memory |