Woolz Image Processing
Version 1.7.5
|
Functions for handling point domains. More...
Functions | |
WlzObject * | WlzPointsToDomObj (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... | |
WlzPoints * | WlzPointsFromDomObj (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... | |
WlzPointValues * | WlzPointValuesFromDomObj (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... | |
WlzObject * | WlzPointsToMarkers (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... | |
WlzPoints * | WlzPointsDither (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... | |
Functions for handling point domains.
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.
void* WlzPointValueGet | ( | WlzPointValues * | pts, |
int | idx | ||
) |
Computes the pointer to the individual value corresponding to the given index.
pts | Given points values. |
idx | Given index. |
References _WlzPointValues::pSz, _WlzGreyP::v, and _WlzPointValues::values.
Referenced by WlzCMeshStrainTensorAtPts(), and WlzObjectFacts().