Woolz Image Processing  Version 1.7.5
WlzTiledValues.c File Reference

Functions construct and convert tiled objects. More...

Functions

WlzTiledValuesWlzMakeTiledValues (int dim, int vRank, WlzErrorNum *dstErr)
 Allocates a new tiled value table, but without allocating any indices or tiles. More...
 
WlzErrorNum WlzFreeTiledValues (WlzTiledValues *tVal)
 Frees a tiled value table. More...
 
WlzTiledValuesWlzNewTiledValues (WlzTiledValues *gVal, WlzPixelV bgdV, WlzErrorNum *dstErr)
 Creates a new tiled values table which shares both the grey value tiles and indexing with the given tiled values. This is done by using the original_table field. More...
 
WlzObjectWlzMakeTiledValuesFromObj (WlzObject *gObj, size_t tileSz, int copyValues, WlzGreyType gType, unsigned int vRank, unsigned int *vDim, WlzPixelV bgdV, WlzErrorNum *dstErr)
 Creates a tiled object from the given object. More...
 
WlzErrorNum WlzMakeTiledValuesTiles (WlzTiledValues *tVal)
 Allocates tiles without a memory mapped file for the tiles values and sets background value within the tiles. More...
 
int WlzTiledValuesMode (WlzTiledValues *tv, WlzErrorNum *dstErr)
 Determines how the tiled values of a tiles value table may be used. If memory mapping is in use then the mode in which the file (containing the memory mapped values) was opened determines the modes in which the tiled values can be accessed. Inappropriate access (eg attempting to change a grey value in a memory mapped tiled values table that was opened for read only) will generate a memory fault. The returned value is a bit mask in which WLZ_IOFLAGS_READ will be set iff grey values can be read and WLZ_IOFLAGS_WRITE will be set iff the grey values can be written to (ie modified). More...
 
WlzTiledValueBufferWlzMakeTiledValueBuffer (WlzTiledValues *tVal, WlzErrorNum *dstErr)
 Makes a new tiled values buffer for the given tiled values table. More...
 
void WlzFreeTiledValueBuffer (WlzTiledValueBuffer *tBuf)
 Frees the given tiled values buffer including it's line buffer. More...
 
void WlzTiledValueBufferFlush (WlzTiledValueBuffer *tvb, WlzTiledValues *tv)
 Flushes the values in the tiled values buffer to the tiled values table. More...
 
void WlzTiledValueBufferFill (WlzTiledValueBuffer *tvb, WlzTiledValues *tv)
 Fills the tiled values buffer using values from the tiled values table. More...
 
WlzObjectWlzMakeTiledValuesObj2D (WlzObject *gObj, size_t tileSz, int setTiles, WlzGreyType gType, unsigned int vRank, unsigned int *vDim, WlzPixelV bgdV, WlzErrorNum *dstErr)
 Creates a 2D domain object which has the same domain as the given 2D domain object but a tiled value table. More...
 
WlzObjectWlzMakeTiledValuesObj3D (WlzObject *gObj, size_t tileSz, int setTiles, WlzGreyType gType, unsigned int vRank, unsigned int *vDim, WlzPixelV bgdV, WlzErrorNum *dstErr)
 Creates a 3D domain object which has the same domain as the given 3D domain object but a tiled value table. More...
 
void WlzTiledValuesCopyLine (WlzTiledValues *tv, WlzGreyP gP, int pl, int ln, int kl1, int lkl)
 Copies a single line of grey values to a tiled value table. This is done within the valid tiles which may lie outside of an object's domain, so care should be used when calling this function. All the given coordinate values are with respect to the tiled value table's origin. If the tiled values have a number of values per element greater than one then the given buffer must have too. More...
 
int WlzTiledValuesValPerElm (WlzTiledValues *tVal)
 Computes the number of values per pixel/voxel for a tiled value table. More...
 

Detailed Description

Functions construct and convert tiled objects.

Author
Bill Hill
Date
March 2010
Version
Id
c2e07641e26b05c9d3db8baee474353704af6724
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.