CCentroid:Y
The Y method returns the centroid y position obtained by the Calc method.
nY = CCentroid:Y() where |
nY is the centroid pixel coordinate for the y axis, measured in pixel coordinates.
|
-- create a new CCentroid object |
|
-- calculate the centroid near pixel coordinate 100,200 |
|
-- result: Y = 199.217 |