Woolz Image Processing
Version 1.8.3
|
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... | |
Computes the centre of mass of objects.
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.