Woolz Image Processing  Version 1.8.3
WlzPrinicipalAngle
Name
WlzPrinicipalAngle - calculates the mass, centre of mass and principal angle of domain objects.
Synopsis
WlzPrinicipalAngle [-o<output file>] [-b] [-d] [-h]
           [<input object file>]
Options
-b object is considered a binary object.
-d output angle in degrees instead of radians.
-o Output object file name.
-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
WlzPrinicipalAngle calculates the mass, centre of mass and principal angle of the input Woolz 2D domain object. The mass, centre of mass and principal angle are written to the output file in the following order:
<mass> <x> <y> <angle>
Where x and y are the column and line coordinates of the centre of mass.
Examples
# WlzPrinicipalAngle reads an object from myobj.wlz, calculates
# its mass,  centre of mass and principal angle then prints them
# to the standard output (angle in degrees).

WlzPrinicipalAngle -d myobj.wlz
File
WlzPrinicipalAngle.c
See Also
WlzCentreOfMass(1) WlzPrincipalAngle(3)