Main Page | Class Hierarchy | Class List | File List | Class Members

LIBCP::Conversions Class Reference

Conversion functions. More...

#include <conversions.h>

List of all members.

Static Public Member Functions

int binarize (Image *dst, Image *src)
int grayScale (Image *dst, Image *src)
int colorize (Image *dst, Image *src)
int splitColorPlanes (Image *source, Image *redPlane, Image *greenPlane, Image *bluePlane)
int mergeColorPlanes (Image *destination, Image *redPlane, Image *greenPlane, Image *bluePlane)
int RGBtoHSV (Image *dst, Image *src)
int HSVtoRGB (Image *dst, Image *src)


Detailed Description

Conversion functions.


Member Function Documentation

int LIBCP::Conversions::binarize Image dst,
Image src
[static]
 

Convert a grayscale image to binary (black/white), with a constant threshold value of 128

Parameters:
dst destination image of type BaseImage::BINARY
src source image of type BaseImage::GRAY

int LIBCP::Conversions::grayScale Image dst,
Image src
[static]
 

Grayscale an image according to the BT.709 recommendations of the ITU

Parameters:
dst destination image of type BaseImage::GRAY
src source image of type BaseImage::COLOR24 or BaseImage::COLOR32

int LIBCP::Conversions::HSVtoRGB Image dst,
Image src
[static]
 

Convert an image from HSV to RGB color format

Parameters:
dst destination image of type BaseImage::COLOR24 or BaseImage::COLOR32
src source image of type BaseImage::COLOR24 or BaseImage::COLOR32

int LIBCP::Conversions::mergeColorPlanes Image dst,
Image redPlane,
Image greenPlane,
Image bluePlane
[static]
 

Merge the three color planes (RED GREEN BLUE) into one color plane

Parameters:
dst destination image of type BaseImage::COLOR24 or BaseImage::COLOR32
redPlane source image contatining the red color values
greenPlane source image contatining the green color values
bluePlane source image contatining the blue color values

int LIBCP::Conversions::RGBtoHSV Image dst,
Image src
[static]
 

Convert an image from RGB to HSV color format

Parameters:
dst destination image of type BaseImage::COLOR24 or BaseImage::COLOR32
src source image of type BaseImage::COLOR24 or BaseImage::COLOR32

int LIBCP::Conversions::splitColorPlanes Image src,
Image redPlane,
Image greenPlane,
Image bluePlane
[static]
 

Split the source image into the three color planes RED GREEN BLUE

Parameters:
src source image of type BaseImage::COLOR24 or BaseImage::COLOR32
redPlane destination image containing the red color values
greenPlane destination image containing the green color values
bluePlane destination image containing the blue color values


The documentation for this class was generated from the following files:
Generated on Wed May 26 16:43:53 2004 for libcp by doxygen 1.3.7