CCentroid:X
The X method returns the centroid x position obtained by the Calc method.
nX = CCentroid:X() |
nX is the centroid pixel coordinate for the x axis, measured in pixel coordinates.
|
-- create a new CCentroid object |
|
-- calculate the centroid near pixel coordinate 100,200 |
|
-- result: X = 101.56 |
CCentroid, Y, Calc, Image Coordinate System, Subpixel Coordinate Definition
Mira Pro x64 Script User's Guide, Copyright Ⓒ 2023 Mirametrics,
Inc. All Rights Reserved.