Woolz Image Processing  Version 1.8.3
WlzRGBAConvert.c File Reference

Conversion routines for RGBA data including conversion to modulus. More...

Functions

WlzCompoundArrayWlzRGBAToCompound (WlzObject *obj, WlzRGBAColorSpace colSpc, WlzErrorNum *dstErr)
 Convert a RGBA image to a compound object. The RGBA channels are at array indices 0,1,2,3 respectively and the sub-object grey types will be WLZ_GREY_UBYTE. More...
 
WlzObjectWlzCompoundToRGBA (WlzCompoundArray *cmpnd, WlzRGBAColorSpace colSpc, WlzErrorNum *dstErr)
 Creates a WLZ_GREY_RGBA valued object from the given compound array. This is a static function which will always be called with valid parameters so they aren't checked. If all members of the compound array are empty then the returned object will be empty too. More...
 
WlzObjectWlzRGBAToModulus (WlzObject *obj, WlzErrorNum *dstErr)
 Calculate the modulus of the rgb values and return in an image of grey type WLZ_GREY_SHORT. More...
 
WlzObjectWlzIndexToRGBA (WlzObject *obj, unsigned char colormap[3][256], WlzErrorNum *dstErr)
 Convert a grey-level woolz object to RGBA via a colourmap look-up table. Values are clamped to [0,255] and the LUT is assumed to be unsigned byte 3x256. More...
 
WlzObjectWlzRGBAToChannel (WlzObject *obj, WlzRGBAColorChannel chan, WlzErrorNum *dstErr)
 

Detailed Description

Conversion routines for RGBA data including conversion to modulus.

Author
Richard Baldock
Date
May 2003
Version
Id
f358558cd7c8a0607b374919f575bc456f3ebf44
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.

Function Documentation

◆ WlzRGBAToChannel()