Woolz Image Processing  Version 1.7.5
WlzCentreOfMass
Name
WlzCentreOfMass - calculates the mass and centre of mass of domain objects.
Synopsis
WlzCentreOfMass [ -o<output file>] [-b] [-h] [<input object file>]
Options
-o output file name
-b object is considered a binaryy object, i.e. just use the domain
-h Help - print help message
-v Verbose operation
By default the input object is read from the standard input and the output is written to the standard output.
Description
WlzCentreOfMass calculates the mass and centre of mass of the input Woolz 2D or 3D domain object. The mass and centre of mass are written to the output file in the following order:
mass x y z
Where x, y and z are the column, line and plane coordinates of the centre of mass.
Examples
WlzCentreOfMass reads an object from myobj.wlz, calculates
its mass and centre of mass and then prints them to the
standard output.

WlzCentreOfMass myobj.wlz
File
WlzCentreOfMass.c
See Also
WlzIntro(1) WlzPrinicipalAngle(1) WlzCentreOfMass2D(3) WlzCentreOfMass3D(3)