Woolz Image Processing  Version 1.8.3
WlzRGBAPixelUtils.c File Reference

Utility functions for pixel and RGBA values. More...

Functions

double WlzRGBAPixelValue (WlzPixelV pixVal, WlzRGBAColorChannel chan, WlzErrorNum *dstErr)
 Calculate the pixel value for a given channel. For grey-pixel types the colour channel values are set equal to the grey value i.e. the pixel is assumed to be (g,g,g). If the grey-channel is requested of a colour pixel the modulus is returned. For colour pixels the error return value is -1, for grey pixels the error return should be tested since all values are valid (except grey-type WlzUByte). Hue and saturation are zero for grey-pixel types. More...
 
void WlzRGBAConvertRGBToHSV_UBYTENormalised (int *col)
 

Detailed Description

Utility functions for pixel and RGBA values.

Author
Richard Baldock
Date
July 2003
Version
Id
048bcdf0accdc6bd8b682830e0b120faf1f4943d
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

◆ WlzRGBAConvertRGBToHSV_UBYTENormalised()

void WlzRGBAConvertRGBToHSV_UBYTENormalised ( int *  col)

References WLZ_MAX, and WLZ_MIN.

Referenced by WlzRGBAPixelValue().