Returns a vector containing thesubscripts of the array elements contained inside a specified polygon.
y
sx
sy
run_length
For large polygons, using run_length can save considerable space.
The x and y parameters are vectors containing the subscripts of the vertices that define the polygon in the coordinate system of the two-dimensional sx-by-sy array.
The sx and sy parameters define the number of columns and rows in the array enclosing the polygon. At least three points must be specified, and all points should lie within the limits:
data
.
x = [100, 200, 300] y = [100, 300, 100]
p = data(POLYFILLV(x, y, 512, 512))
std = STDEV(p, mean)