CCentroid:Y


The Y method returns the centroid y position obtained by the Calc method.

Syntax

nY = CCentroid:Y()

bullet.gif    nY is the centroid pixel coordinate for the y axis, measured in pixel coordinates.

Example

 

C = new_centroid()

-- create a new CCentroid object

C:Calc( 100, 200 )

-- calculate the centroid near pixel coordinate 100,200

Printf("Y=%.3lf", C:Y() )

-- result: Y = 199.217

Related Topics

CCentroid, X, Calc, Image Coordinate System, Subpixel Coordinate Definition

 

Mira Pro x64 Script User's Guide, Copyright Ⓒ 2023 Mirametrics, Inc. All Rights Reserved.