Woolz Image Processing
Version 1.8.3
|
Conversion routines for RGBA data including conversion to modulus. More...
Functions | |
WlzCompoundArray * | WlzRGBAToCompound (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... | |
WlzObject * | WlzCompoundToRGBA (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... | |
WlzObject * | WlzRGBAToModulus (WlzObject *obj, WlzErrorNum *dstErr) |
Calculate the modulus of the rgb values and return in an image of grey type WLZ_GREY_SHORT. More... | |
WlzObject * | WlzIndexToRGBA (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... | |
WlzObject * | WlzRGBAToChannel (WlzObject *obj, WlzRGBAColorChannel chan, WlzErrorNum *dstErr) |
Conversion routines for RGBA data including conversion to modulus.
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.
WlzObject* WlzRGBAToChannel | ( | WlzObject * | obj, |
WlzRGBAColorChannel | chan, | ||
WlzErrorNum * | dstErr | ||
) |
References _WlzValues::core, _WlzDomain::core, _WlzObject::domain, _WlzDomain::p, _WlzObject::type, _WlzPlaneDomain::type, _WlzVoxelValues::type, _WlzObject::values, _WlzValues::vox, WLZ_2D_DOMAINOBJ, WLZ_3D_DOMAINOBJ, WLZ_ERR_DOMAIN_NULL, WLZ_ERR_DOMAIN_TYPE, WLZ_ERR_NONE, WLZ_ERR_VALUES_NULL, WLZ_ERR_VALUES_TYPE, WLZ_GREY_RGBA, WLZ_PLANEDOMAIN_DOMAIN, WLZ_VOXELVALUETABLE_GREY, and WlzGreyTypeFromObj().