Woolz Image Processing  Version 1.8.3
WlzPoints.c File Reference

Functions for handling point domains. More...

Functions

WlzObjectWlzPointsToDomObj (WlzPoints *pnt, double scale, WlzErrorNum *dstErr)
 Creates a domain object which coresponds to the union of the given points. More...
 
void * WlzPointValueGet (WlzPointValues *pts, int idx)
 Computes the pointer to the individual value corresponding to the given index. More...
 
WlzPointsWlzPointsFromDomObj (WlzObject *gvnObj, double dMin, int useFloatingPoint, int voxelScaling, int useGrey, double gMin, double gMax, double gGam, WlzErrorNum *dstErr)
 Finds points which are within the given opjects domain and are seperated by at least the given minimum distance. If the given object's grey values are used, then the probability of a point being placed is proportional to:

\[ \left\{ \begin{array}{ll} 0.0 & g_i < g_{min} \\ frac{(g_i - g_{min})^\gamma}{g_{max} - g_{min}} & g_i > g_{min} \end{array} \right. \]

. More...

 
WlzPointValuesWlzPointValuesFromDomObj (WlzPoints *pdm, WlzObject *domObj, WlzErrorNum *dstErr)
 Creates a new point values using the given points domain and domain object with values. Values are sampled from the domain object using the locations of the points in the points domain. More...
 
WlzObjectWlzPointsToMarkers (WlzPoints *pts, WlzMarkerType mType, int mSz, WlzErrorNum *dstErr)
 Constructs a domain from the union of marker domains with a marker domain at each of the given point positions. More...
 
WlzPointsWlzPointsDither (WlzPoints *gPts, WlzDVertex3 dSz, WlzObject *resObj, WlzErrorNum *dstErr)
 Dithers the vertices of the given points by adding a random displacement within the range -d to +d, where d is the given dither size. More...
 
WlzVertexType WlzPointsVertexType (WlzObjectType pType, WlzErrorNum *dstErr)
 Gets the points domain vertex type. More...
 

Detailed Description

Functions for handling point domains.

Author
Bill Hill
Date
December 2005
Version
Id
6aafc29681517333369593095b0a47887ee8799d
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.

Function Documentation

◆ WlzPointValueGet()

void* WlzPointValueGet ( WlzPointValues pts,
int  idx 
)

Computes the pointer to the individual value corresponding to the given index.

Returns
Pointer to the points value.
Parameters
ptsGiven points values.
idxGiven index.

References _WlzPointValues::pSz, _WlzGreyP::v, and _WlzPointValues::values.