Woolz Image Processing
Version 1.7.5
|
Look up tables for value transformations. More...
Functions | |
WlzObject * | WlzMakeLUTObject (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... | |
WlzLUTDomain * | WlzMakeLUTDomain (int bin1, int lastbin, WlzErrorNum *dstErr) |
Makes a new look up table domain. The returned data structure should be freed using WlzFreeDomain(). More... | |
WlzLUTValues * | WlzMakeLUTValues (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... | |
WlzObject * | WlzLUTGreyTransformNew (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... | |
WlzObject * | WlzLUTMergeToRGBA (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... | |
WlzObject * | WlzLUTTransformObj (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... | |
Look up tables for value transformations.
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.