Woolz Image Processing  Version 1.7.5
WlzValueTableUtils.c File Reference

Functions for computing value amd value table types. More...

Functions

WlzObjectType WlzGreyValueTableType (int rank, WlzGreyTableType tableType, WlzGreyType greyType, WlzErrorNum *dstErr)
 Computes a grey table type from table and grey types. This function is equivalent to the macro WLZ_GREY_TABLE_TYPE but with range checks. More...
 
WlzGreyType WlzGreyTableTypeToGreyType (WlzObjectType gTabType, WlzErrorNum *dstErr)
 Computes the type of grey from a grey table type. This function is equivalent to the macro WLZ_GREY_TABLE_TO_GREY_TYPE but with range checks. More...
 
WlzGreyTableType WlzGreyTableTypeToTableType (WlzObjectType gTabType, WlzErrorNum *dstErr)
 Computes the type of table from a grey table type. This function is equivalent to the macro WLZ_GREY_TABLE_TO_TABLE_TYPE but with range checks. More...
 
int WlzGreyTableTypeToRank (WlzObjectType gTabType, WlzErrorNum *dstErr)
 Computes the rank from a grey table type. This function is equivalent to the macro WLZ_GREY_TABLE_TO_RANK but with range checks. More...
 
WlzGreyTableType WlzGreyTableIsTiled (WlzObjectType gTabType)
 Determines whether the grey table type is tiled. More...
 
WlzGreyType WlzGreyTypeFromObj (WlzObject *obj, WlzErrorNum *dstErr)
 Gets the grey type of the values in a Woolz object. If the object is not a domain object with values an error is returned. If the object is a 3D domain object with values, all 2D value tables are checked and an error is returned if they don't all have the same grey type. More...
 
WlzDVertex3 WlzVozelSz (WlzObject *obj, WlzErrorNum *dstErr)
 Gets the given 3D domain objects voxel size. More...
 
void * WlzIndexedValueGet (WlzIndexedValues *ixv, int idx)
 Gets a pointer to the valuetable entry for the given index. If the indexed values are not valid for the given index NULL will be returned. See also WlzIndexedValueExtGet(). More...
 
void * WlzIndexedValueExtGet (WlzIndexedValues *ixv, int idx)
 Gets a pointer to the valuetable entry for the given index. The value table is extended as required so that there should always be a valid entry unless memory allocation fails. See also WlzIndexedValueGet(). More...
 
WlzErrorNum WlzIndexedValuesSet (WlzObject *obj, size_t cnt, void *val)
 Sets all values covered by the domain in the given object to the given value. Ths function calls memcpy() for each indexed value using the given value count and pointer. More...
 

Detailed Description

Functions for computing value amd value table types.

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