Woolz Image Processing  Version 1.7.5
WlzCentreOfMass.c File Reference

Computes the centre of mass of objects. More...

Functions

WlzDVertex2 WlzCentreOfMass2D (WlzObject *srcObj, int binObjFlag, double *dstMass, WlzErrorNum *dstErr)
 Calculates the centre of mass of a Woolz object. If the given object does not have grey values or the binary object flag is set (ie non zero) then every pixel or vertex within the object's domain has the same mass. More...
 
WlzDVertex3 WlzCentreOfMass3D (WlzObject *srcObj, int binObjFlag, double *dstMass, WlzErrorNum *dstErr)
 Calculates the centre of mass of a Woolz object. If the given object does not have grey values or the binary object flag is set (ie non zero) then every pixel or vertex within the objects domain has the same mass. More...
 
WlzDVertex2 WlzCentreOfMassVtx2D (int nVtx, WlzDVertex2 *vtx)
 Computes the centre of mass of a vector of 2D vertices. More...
 
WlzDVertex3 WlzCentreOfMassVtx3D (int nVtx, WlzDVertex3 *vtx)
 Computes the centre of mass of a vector of 3D vertices. More...
 

Detailed Description

Computes the centre of mass of objects.

Author
Bill Hill
Date
March 1999
Version
Id
69968a2a2a2e78ab7066c86d5b9252712955f869
Address: MRC Human Genetics Unit, MRC Institute of Genetics and Molecular Medicine, University of Edinburgh, Western General Hospital, Edinburgh, EH4 2XU, UK.
Copyright (C), [2012], The University Court of the University of Edinburgh, Old College, Edinburgh, UK.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.