dmIColorSpace Class Reference

Merge and split RGB images into multiple channels images. More...

#include <CCI_Colorspace.h>

Inherits dmIImageList.

Inherited by dmIColorSpaceGSC, dmIColorSpaceGSL, dmIColorSpaceHLS, dmIColorSpaceHSV, dmIColorSpaceOCP, dmIColorSpaceRGB, dmIColorSpaceYIQ, and dmIColorSpaceYUV.

List of all members.

Public Member Functions

bool Split (cci_object *params)
 Split image into components.
bool Merge (cci_object *params)
 Merge image from imagelist components.
dm_uint GetChannelFmt ()
 Get the pixel format of the channels.
bool SetChannelFmt (dm_uint channelfmt)
 Set the pixel format of the channels.
bool CanMerge ()
 Return true if the merge operation can be performed in the current colorspace.
dm_uint NumChannels ()
 Return the number of channels used in the decomposition.
bool Extract (cci_object *params, dm_uint channel, dm_uint index)
 Extract channel component from current parameter image.
bool SetRect (CONST dm_rect *rect)
 Set the rectangular ROI used for merge operation.
bool SplitColor (dm_real &q1, dm_real &q2, dm_real &q3, dm_real &q4)
 Split color specified by q1,q2,q2,q4.
bool MergeColor (dm_real &q1, dm_real &q2, dm_real &q3, dm_real &q4)
 Merge color specified by q1,q2,q2,q4.
bool SplitImage (const dmImage *image)
 Split image into components.


Detailed Description

Merge and split RGB images into multiple channels images.

Components image are stored into this object in buffer 0..n-1, where n is the number of components from the selected type of decomposition.

The format of the channels are either 8 bits and floating point pixel format ( see SetChannelFmt() for setting the format of the decomposition). In floating point format the results are unormalized and the range of values varies on the type of decomposition used.


Member Function Documentation

bool dmIColorSpace::Extract cci_object *  params,
dm_uint  channel,
dm_uint  index
[inline]
 

Extract channel component from current parameter image.

The extracted image will be stored at buffer index of the parameter image list. If index is -1, the image will be stored in the parameter imagebuffer object.

bool dmIColorSpace::MergeColor dm_real &  q1,
dm_real &  q2,
dm_real &  q3,
dm_real &  q4
[inline]
 

Merge color specified by q1,q2,q2,q4.

On input q1, q2, and q3 are the transformed components On output q1, q2, and q3 are the RGB components

bool dmIColorSpace::SetChannelFmt dm_uint  channelfmt  )  [inline]
 

Set the pixel format of the channels.

Note that only 8 bits and floating point pixel images are currently supported

bool dmIColorSpace::SplitColor dm_real &  q1,
dm_real &  q2,
dm_real &  q3,
dm_real &  q4
[inline]
 

Split color specified by q1,q2,q2,q4.

On input q1, q2, and q3 are the RGB components On output q1, q2, and q3 are the transformed components


Generated on Tue May 9 12:34:57 2006 for Daim Library Module Set by  doxygen 1.4.6-NO