Woolz Image Processing  Version 1.7.5
WlzLUT.c File Reference

Look up tables for value transformations. More...

Functions

WlzObjectWlzMakeLUTObject (WlzGreyType vType, int bin1, int lastbin, WlzErrorNum *dstErr)
 Creates a new look up table object by calling WlzMakeLUTDomain() and WlzMakeLUTValues(). The last bin of the look up table must be greater than the first. More...
 
WlzLUTDomainWlzMakeLUTDomain (int bin1, int lastbin, WlzErrorNum *dstErr)
 Makes a new look up table domain. The returned data structure should be freed using WlzFreeDomain(). More...
 
WlzLUTValuesWlzMakeLUTValues (WlzGreyType vType, int maxVal, WlzErrorNum *dstErr)
 Makes a new look up table values data structure. The returned data structure should be freed using WlzFreeLUTValues(). More...
 
WlzErrorNum WlzFreeLUTValues (WlzValues val)
 Frees a look up table values data structure. More...
 
WlzObjectWlzLUTGreyTransformNew (WlzGreyTransformType gTrType, WlzGreyType gType, int il, int iu, WlzGreyV gol, WlzGreyV gou, double p0, double p1, WlzErrorNum *dstErr)
 Creates a new look up table object, setting it's look up table values using a grey transform. See also WlzMakeLUTObject() and WlzLUTGreyTransformSet(). More...
 
WlzErrorNum WlzLUTGreyTransformSet (WlzObject *obj, WlzGreyTransformType gTrType, WlzGreyType gType, int il, int iu, WlzGreyV gol, WlzGreyV gou, double p0, double p1)
 Sets a given look up table using a grey transform. More...
 
WlzObjectWlzLUTMergeToRGBA (WlzObject *r, WlzObject *g, WlzObject *b, WlzObject *a, WlzErrorNum *dstErr)
 Merges separate grey LUTs into a single RGBA LUT. All LUTs should either be NULL or have the same domain and integer LUT values, with at least one LUT object being non NULL. More...
 
WlzObjectWlzLUTTransformObj (WlzObject *gObj, WlzObject *tObj, WlzGreyType rGType, int inplace, int dither, WlzErrorNum *dstErr)
 Applies a LUT to an domain object with grey values. More...
 
WlzPixelV WlzLUTTransformPixelValue (WlzObject *tObj, WlzPixelV gPix, WlzGreyType rType, WlzErrorNum *dstErr)
 Transforms the grey value of a single pixel using the given look up table object. This function is not very efficient, use WlzLUTTransformGreyValues() (which this function calls) where possible. More...
 
WlzErrorNum WlzLUTTransformGreyValues (WlzObject *tObj, WlzGreyP rP, WlzGreyType rType, WlzGreyP gP, WlzGreyType gType, int nVal, int dither)
 Transforms the grey values in the given buffer using the look up table object, putting the values into the return buffer. More...
 

Detailed Description

Look up tables for value transformations.

Author
Bill Hill
Date
November 2011
Version
Id
4c971fb1e26583404217a8a525a18f8674f8937f
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.