Woolz Image Processing  Version 1.8.3
WlzConvexHull.c File Reference

Functions for computing the convex hull of objects. More...

Functions

WlzConvHullDomain2WlzMakeConvexHullDomain2 (int maxVtx, WlzVertexType vtxType, WlzErrorNum *dstErr)
 Allocates a new 2D convex hull domain with space for at least the requested number of vertices. More...
 
WlzConvHullDomain3WlzMakeConvexHullDomain3 (int maxVtx, int maxFce, WlzVertexType vtxType, WlzErrorNum *dstErr)
 Allocates a new 3D convex hull domain with space for at least the requested number of vertices and faces. More...
 
WlzErrorNum WlzFreeConvexHullDomain2 (WlzConvHullDomain2 *cvh)
 Frees the given 2D convex hull domain. More...
 
WlzErrorNum WlzFreeConvexHullDomain3 (WlzConvHullDomain3 *cvh)
 Frees the given 3D convex hull domain. More...
 
WlzConvHullDomain2WlzConvexHullCopy2 (WlzConvHullDomain2 *gCVH, WlzVertexType rVtxType, WlzErrorNum *dstErr)
 Copies the given 2D convex hull domain which has the minimum required number of vertices, with verticies of the required type. More...
 
WlzConvHullDomain3WlzConvexHullCopy3 (WlzConvHullDomain3 *gCVH, WlzVertexType rVtxType, WlzErrorNum *dstErr)
 Copies the given 3D convex hull domain which has the minimum required number of vertices and faces, with verticies of the required type. More...
 
WlzObjectWlzConvexHullToObj (WlzObject *cObj, WlzObjectType rType, WlzErrorNum *dstErr)
 Computes a new object of the requested type enclosing the same region of space as the given convex hull object. More...
 
WlzObjectWlzObjToConvexHull (WlzObject *gObj, WlzErrorNum *dstErr)
 Computes the convex hull of the given object. If a degenerate convex hull is returned then the returned error will be WLZ_ERR_DEGENERATE. More...
 
WlzObjectWlzObjToConvexPolygon (WlzObject *obj, WlzErrorNum *dstErr)
 Construct the minimal convex polygonal cover from interval domain. More...
 
WlzIVertex2 WlzConvexHullVtxD2ToI2 (WlzDVertex2 d, WlzDVertex2 c)
 Convert the given double vertex to an integer vertex such that it will enclose the given convex hull double vertex. More...
 
WlzIVertex3 WlzConvexHullVtxD3ToI3 (WlzDVertex3 d, WlzDVertex3 c)
 Convert the given double vertex to an integer vertex such that it will enclose the given convex hull double vertex. More...
 

Detailed Description

Functions for computing the convex hull of objects.

Author
Richard Baldock, Bill Hill
Date
March 1999
Version
Id
715ae3ef2f41f03187a2ac6209feb5917264e63f
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.