BIAS::ImageConvert Class Reference
[ImageIO and Conversions]

class with static functions for converting all kinds of color formats and storage types More...

#include <Base/Image/ImageConvert.hh>

Inheritance diagram for BIAS::ImageConvert:

Inheritance graph
[legend]
Collaboration diagram for BIAS::ImageConvert:

Collaboration graph
[legend]

List of all members.

Public Member Functions

template<>
int BGRAToHSL_ (const Image< unsigned char > &source, Image< unsigned char > &dest)
template<>
int BGRToHSL_ (const Image< unsigned char > &source, Image< unsigned char > &dest)
template<>
int DVToRGB_ (const Image< unsigned char > &source, Image< unsigned char > &dest, unsigned char quality)
template<>
BIASImageBase_EXPORT int RGBTohsL_ (const Image< unsigned char > &source, Image< unsigned char > &dest)
template<>
BIASImageBase_EXPORT int RGBTohsL_ (const Image< float > &source, Image< float > &dest)
template<>
BIASImageBase_EXPORT int RGBTohsL_ (const Image< int > &source, Image< int > &dest)
template<>
int RGBToHSL_ (const Image< unsigned char > &source, Image< unsigned char > &dest)
template<>
int RGBToHSL_ (const Image< float > &source1, Image< float > &dest)
template<>
int RGBToHSV_ (const Image< unsigned char > &source, Image< unsigned char > &dest)
template<>
int RGBToHSV_ (const Image< float > &source1, Image< float > &dest)

Static Public Member Functions

template<class StorageType>
static int BayerToRGB (const Image< StorageType > &source, Image< StorageType > &dest, BayerDemosaicMethod method=BAYER_DEMOSAIC_METHOD_BILINEAR, bool flip=false)
 converts an image with bayer pattern to rgb
template<class StorageType>
static int BayerToRGB_ (const Image< StorageType > &source, Image< StorageType > &dest)
 added border calculation, woelk evers, woelk
template<class StorageType>
static int BayerToRGBSimple (const StorageType *source, StorageType *dest, int sx, int sy, ImageBase::EColorModel tile)
template<class StorageType>
static int BIAS2ipl (const Image< StorageType > &source, IplImage *&dest)
 Returns a new, separate IplImage for use with OpenCV created rom the source BIAS Image.
static int Convert (BIAS::ImageBase &source, BIAS::ImageBase &dest, enum BIAS::ImageBase::EColorModel targetColorModel, bool bPlanar=false)
 main general function, calls desired specialized functions, always initializes the destImage(if not source==dest)
static int ConvertST (const BIAS::ImageBase &source, BIAS::ImageBase &dest, ImageBase::EStorageType targetST)
 ask Friso
static int DeinterleaveHorizontal (const BIAS::ImageBase &raw, BIAS::ImageBase &out)
 Take Pointgrey X3B packed interleaved raw and store there three contained images side by side keeping the Bayer pattern.
template<class StorageType>
static int DVToRGB_ (const Image< StorageType > &source, Image< StorageType > &dest, unsigned char quality=4)
 foreign image formats, ipl, vil so far untested
template<class StorageType>
static BIASImageBase_EXPORT int FromInterleaved (const Image< StorageType > &source, Image< StorageType > &Image1, Image< StorageType > &Image2, Image< StorageType > &Image3)
 extracts color planes to argument images without changing source.
static int GetChannel (ImageBase &image, int channel, bool strip=false)
 in place: Crop selected channel.
template<class StorageType>
static BIASImageBase_EXPORT int GetChannel (Image< StorageType > &image, int channel, bool strip=false)
 in place: Crop the selected channel.
template<class StorageType>
static BIASImageBase_EXPORT int GetChannel (const Image< StorageType > &source, Image< StorageType > &dest, const unsigned int channel)
 Create a new image dest by cropping one of the source images channels.
template<class StorageType>
static BIASImageBase_EXPORT int IP_ToGrey (Image< StorageType > &img)
 In place conversion to gray image.
template<class StorageType>
static int Ipl2BIAS (IplImage *source, Image< StorageType > &dest)
 Takes the image information and data of an existing IplImage and builds a Image.
template<class StorageType>
static BIASImageBase_EXPORT int LUVToRGB (const BIAS::Image< float > &source, BIAS::Image< StorageType > &dest, float scale=255.0)
static int LUVToXYZ (const BIAS::Image< float > &source, BIAS::Image< float > &dest)
static int RGBToI1I2I3 (const BIAS::ImageBase &source, BIAS::Image< float > &dest)
 Converts RGB image to Othe's principle component generalization for RGB based segmentation.
static int RGBToLAB (const BIAS::ImageBase &source, BIAS::Image< float > &dest, float scale=255.0)
static int RGBToLUV (const BIAS::ImageBase &source, BIAS::Image< float > &dest, float scale=255.0)
static int RGBToXYZ (const BIAS::ImageBase &source, BIAS::Image< float > &dest, float scale=255.0)
template<class StorageType>
static BIASImageBase_EXPORT int ToGrey (const Image< StorageType > &source, Image< StorageType > &dest)
 Create a grey converted copy of source image in this.
static int ToGrey (const ImageBase &source, ImageBase &dest)
 wrapper for the templated function below
template<class StorageType>
static BIASImageBase_EXPORT int TohsL (const Image< StorageType > &source, Image< StorageType > &dest)
 create a hsL converted copy of source image in this Release() and Init() are called if necessary.
template<class StorageType>
static BIASImageBase_EXPORT int ToHSL (const Image< StorageType > &source, Image< StorageType > &dest)
 create a HSL converted copy of source image in this Release() and Init() are called if necessary.
template<class StorageType>
static BIASImageBase_EXPORT int ToHSV (const Image< StorageType > &source, Image< StorageType > &dest)
 create a HSV converted copy of source image in this Release() and Init() are called if necessary.
template<class StorageType>
static BIASImageBase_EXPORT int ToInterleaved (const Image< StorageType > &source, Image< StorageType > &dest)
 Takes the source image, and build an interleaved version.
template<class StorageType>
static BIASImageBase_EXPORT int ToInterleavedRGB (const Image< StorageType > &red, const Image< StorageType > &green, const Image< StorageType > &blue, Image< StorageType > &dest)
 Takes the three channels an compose one interleaved RGB image.
template<class StorageType>
static BIASImageBase_EXPORT int ToPlanar (const Image< StorageType > &source, Image< StorageType > &dest)
 Converts the existing image to an planar version.
template<class StorageType>
static BIASImageBase_EXPORT int ToRGB (const Image< StorageType > &source, Image< StorageType > &dest)
 Create a RGB converted copy of source image in this.
template<class StorageType>
static BIASImageBase_EXPORT int ToRGBA (const Image< StorageType > &source, Image< StorageType > &dest)
 Create a RGBA converted copy of source image in dest.
static int XYZToLAB (const BIAS::Image< float > &source, BIAS::Image< float > &dest)
static int XYZToLUV (const BIAS::Image< float > &source, BIAS::Image< float > &dest)
template<class StorageType>
static BIASImageBase_EXPORT int XYZToRGB (const BIAS::Image< float > &source, BIAS::Image< StorageType > &dest, float scale=255.0)

Static Protected Member Functions

template<class StorageType>
static int BayerToGrey_ (const Image< StorageType > &source, Image< StorageType > &dest)
 interpolates, better than above
template<class StorageType>
static int BayerToRGBAHD_ (const StorageType *source, StorageType *dest, int sx, int sy, ImageBase::EColorModel tile, int bits)
template<class StorageType>
static int BayerToRGBBilinear_ (const StorageType *source, StorageType *dest, int sx, int sy, ImageBase::EColorModel tile)
static int BayerToRGBHQLinear_ (const unsigned short *source, unsigned short *dest, int sx, int sy, ImageBase::EColorModel tile, int bits)
static int BayerToRGBHQLinear_ (const unsigned char *source, unsigned char *dest, int sx, int sy, ImageBase::EColorModel tile)
template<class StorageType>
static int BayerToRGBNearestNeighbour_ (const StorageType *source, StorageType *dest, int sx, int sy, ImageBase::EColorModel tile)
template<class StorageType>
static int BayerToRGBSimple_ (const StorageType *source, StorageType *dest, int sx, int sy, ImageBase::EColorModel tile)
template<class StorageType>
static int BayerToRGBSlow_ (const Image< StorageType > &source, Image< StorageType > &dest)
 this is the right way, green interpoaltion is mostly done out of two values no visible difference to fast calculation as used above
template<class StorageType>
static int BGRAToGrey_ (const Image< StorageType > &source, Image< StorageType > &dest)
 not tested - use at own risk - alpha channel will be ignored
template<class StorageType>
static int BGRAToHSL_ (const Image< StorageType > &source, Image< StorageType > &dest)
template<class StorageType>
static BIASImageBase_EXPORT int BGRAToRGB_ (const Image< StorageType > &source, Image< StorageType > &dest)
template<class StorageType>
static int BGRToHSL_ (const Image< StorageType > &source, Image< StorageType > &dest)
template<class StorageType>
static int BGRToRGB_ (const Image< StorageType > &source, Image< StorageType > &dest)
template<class StorageType>
static void ClearBorders_ (StorageType *rgb, int sx, int sy, int w)
template<class StorageType>
static void CLIP (StorageType &in, StorageType &out)
template<class StorageType>
static void CLIP16 (StorageType &in, StorageType &out, StorageType bits)
template<class sourceType>
static BIASImageBase_EXPORT void ConvertRGBToI1I2I3Worker_ (const sourceType *soP, float *siP, int size)
static int FloatToUC_ (const ImageBase &source, ImageBase &dest)
template<class StorageType>
static int FromInterleavedRGB_ (const Image< StorageType > &source, Image< StorageType > &R, Image< StorageType > &G, Image< StorageType > &B)
template<class StorageType>
static int FromInterleavedYUYV422_ (const Image< StorageType > &source, Image< StorageType > &Y, Image< StorageType > &U, Image< StorageType > &V)
template<class StorageType>
static int GreyToRGB_ (const Image< StorageType > &source, Image< StorageType > &dest)
template<class StorageType>
static int HSLToGrey_ (const Image< StorageType > &source, Image< StorageType > &dest)
 just copies the L channel
template<class StorageType>
static int HSLToRGB_ (const BIAS::Image< StorageType > &source, BIAS::Image< StorageType > &dest)
template<class StorageType>
static int HSVToRGB_ (const Image< StorageType > &source, Image< StorageType > &dest)
template<class StorageType>
static int IP_RGBToGrey_ (Image< StorageType > &img)
template<class StorageType>
static int IP_YUV422ToGrey_ (Image< StorageType > &img)
template<class StorageType>
static BIASImageBase_EXPORT int RGBAToRGB_ (const Image< StorageType > &source, Image< StorageType > &dest)
template<class StorageType>
static int RGBToGrey_ (const Image< StorageType > &source, Image< StorageType > &dest)
template<class StorageType>
static BIASImageBase_EXPORT int RGBTohsL_ (const Image< StorageType > &source, Image< StorageType > &dest)
template<class StorageType>
static int RGBToHSL_ (const Image< StorageType > &source, Image< StorageType > &dest)
template<class StorageType>
static int RGBToHSV_ (const Image< StorageType > &source, Image< StorageType > &dest)
 so far only implemented for StorageType=float
template<class StorageType>
static int ToInterleavedRGB_ (const Image< StorageType > &source, Image< StorageType > &dest)
template<class StorageType>
static int ToInterleavedYUYV422_ (const Image< StorageType > &source, Image< StorageType > &dest)
template<class StorageType>
static int ToPlanarRGB_ (const Image< StorageType > &source, Image< StorageType > &dest)
template<class StorageType>
static int ToPlanarYUYV422_ (const Image< StorageType > &source, Image< StorageType > &dest)
template<class StorageType>
static int YUV411ToGrey_ (const Image< StorageType > &source, Image< StorageType > &dest)
template<class StorageType>
static int YUV420PToGrey_ (const Image< StorageType > &source, Image< StorageType > &dest)
template<class StorageType>
static int YUV420PToRGB_ (const Image< StorageType > &source, Image< StorageType > &dest)
template<class StorageType>
static int YUV422ToGrey_ (const Image< StorageType > &source, Image< StorageType > &dest)
template<class StorageType>
static int YUV422ToRGB_ (const Image< StorageType > &source, Image< StorageType > &dest)

Static Protected Attributes

static dv_decoder_t * DVDecoder_ = NULL

Private Member Functions

void AddDebugLevel (const std::string &name)
void AddDebugLevel (const long int lv)
long ConsumeNextFreeDebuglevel_ ()
 returns the next available debuglevel
bool DebugLevelIsSet (const std::string &name) const
bool DebugLevelIsSet (const long int lv) const
int GetDebugLevel () const
void GetDebugStream (std::ostream &os) const
std::ostream & GetDebugStream () const
long int Name2DebugLevel (const std::string &name) const
 looks up a debuglevel in the internal map, returns 0 if not found
long int NewDebugLevel (const std::string &name)
 creates a new debuglevel
void PrintDebugLevel (std::ostream &os=std::cout) const
void RemoveDebugLevel (const std::string &name)
void RemoveDebugLevel (const long int lv)
void SetDebugLevel (const std::string &name)
void SetDebugLevel (const long int lv)
void SetDebugStream (const std::ostream &os)
void ShowDebugLevel (std::ostream &os=std::cout) const
 prints all internally known debuglevels

Static Private Member Functions

static long int GetGlobalDebugLevel ()
static void SetGlobalDebugLevel (long int lev)

Private Attributes

long int _liDebugLevel
long int _liNextDebugLevel
 new concept, debuglevel are managed here in the debug class
std::map< std::string, long int > _String2Debuglevel

Static Private Attributes

static std::ostream _zDebugStream
static long int GlobalDebugLevel = 0

Friends

class ImageBase


Detailed Description

class with static functions for converting all kinds of color formats and storage types

As all fucntions are static they have to be called by eg. ImageConvert::Convert() and not with an object.

Be carefull: You must use the correct the color-scheme if you want to convert images by a camera. Use SetColorScheme().

Author:
Daniel Grest, Nov. 2002

Definition at line 81 of file ImageConvert.hh.


Member Function Documentation

void BIAS::Debug::AddDebugLevel ( const std::string &  name  )  [inline, inherited]

Definition at line 363 of file Debug.hh.

void BIAS::Debug::AddDebugLevel ( const long int  lv  )  [inline, inherited]

template<class StorageType>
int BIAS::ImageConvert::BayerToGrey_ ( const Image< StorageType > &  source,
Image< StorageType > &  dest 
) [inline, static, protected]

template<class StorageType>
int BIAS::ImageConvert::BayerToRGB ( const Image< StorageType > &  source,
Image< StorageType > &  dest,
BayerDemosaicMethod  method = BAYER_DEMOSAIC_METHOD_BILINEAR,
bool  flip = false 
) [inline, static]

converts an image with bayer pattern to rgb

Author:
bangerer 05/2009
Parameters:
source source image
dest destination image
method choose the demosaicing method from several methods drom BayerDemosaicMethod enum. standard is bilinear
flip flip the image horizontal after converting it to rgb

Definition at line 2587 of file ImageConvert.cpp.

References BayerToRGBBilinear_(), BayerToRGBHQLinear_(), BayerToRGBNearestNeighbour_(), BayerToRGBSimple_(), BIAS::ImageBase::FlipHorizontal(), BIAS::ImageBase::GetBitDepth(), BIAS::ImageBase::GetColorModel(), BIAS::ImageBase::GetHeight(), BIAS::Image< StorageType >::GetImageData(), BIAS::ImageBase::GetStorageType(), BIAS::ImageBase::GetWidth(), and BIAS::ImageBase::ST_unsignedchar.

Referenced by BIAS::VideoSource_DCAM::GrabSingleAndConvert().

template<class StorageType>
int BIAS::ImageConvert::BayerToRGB_ ( const Image< StorageType > &  source,
Image< StorageType > &  dest 
) [inline, static]

template<class StorageType>
int ImageConvert::BayerToRGBAHD_ ( const StorageType *  source,
StorageType *  dest,
int  sx,
int  sy,
ImageBase::EColorModel  tile,
int  bits 
) [inline, static, protected]

Definition at line 4293 of file ImageConvert.cpp.

template<class StorageType>
int ImageConvert::BayerToRGBBilinear_ ( const StorageType *  source,
StorageType *  dest,
int  sx,
int  sy,
ImageBase::EColorModel  tile 
) [inline, static, protected]

int ImageConvert::BayerToRGBHQLinear_ ( const unsigned short *  source,
unsigned short *  dest,
int  sx,
int  sy,
ImageBase::EColorModel  tile,
int  bits 
) [static, protected]

int ImageConvert::BayerToRGBHQLinear_ ( const unsigned char *  source,
unsigned char *  dest,
int  sx,
int  sy,
ImageBase::EColorModel  tile 
) [static, protected]

template<class StorageType>
int ImageConvert::BayerToRGBNearestNeighbour_ ( const StorageType *  source,
StorageType *  dest,
int  sx,
int  sy,
ImageBase::EColorModel  tile 
) [inline, static, protected]

template<class StorageType>
int ImageConvert::BayerToRGBSimple ( const StorageType *  source,
StorageType *  dest,
int  sx,
int  sy,
ImageBase::EColorModel  tile 
) [inline, static]

Definition at line 3610 of file ImageConvert.cpp.

References BayerToRGBSimple_().

template<class StorageType>
int ImageConvert::BayerToRGBSimple_ ( const StorageType *  source,
StorageType *  dest,
int  sx,
int  sy,
ImageBase::EColorModel  tile 
) [inline, static, protected]

template<class StorageType>
int BIAS::ImageConvert::BayerToRGBSlow_ ( const Image< StorageType > &  source,
Image< StorageType > &  dest 
) [inline, static, protected]

this is the right way, green interpoaltion is mostly done out of two values no visible difference to fast calculation as used above

Author:
woelk 03 2003

Definition at line 2655 of file ImageConvert.cpp.

References BIAS::ImageBase::CM_Bayer_BGGR, BIAS::ImageBase::CM_Bayer_GBRG, BIAS::ImageBase::CM_Bayer_GRBG, BIAS::ImageBase::GetColorModel(), BIAS::ImageBase::GetHeight(), BIAS::Image< StorageType >::GetImageData(), BIAS::ImageBase::GetWidth(), BIAS::ImageBase::GetWidthStep(), and BIAS::ImageBase::SetROI().

template<class StorageType>
int BIAS::ImageConvert::BGRAToGrey_ ( const Image< StorageType > &  source,
Image< StorageType > &  dest 
) [inline, static, protected]

template<>
int BIAS::ImageConvert::BGRAToHSL_ ( const Image< unsigned char > &  source,
Image< unsigned char > &  dest 
) [inline]

template<class StorageType>
int BIAS::ImageConvert::BGRAToHSL_ ( const Image< StorageType > &  source,
Image< StorageType > &  dest 
) [inline, static, protected]

Definition at line 476 of file ToHSL.cpp.

References BIAS::ImageBase::GetStorageType().

Referenced by ToHSL().

template<class StorageType>
int BIAS::ImageConvert::BGRAToRGB_ ( const Image< StorageType > &  source,
Image< StorageType > &  dest 
) [inline, static, protected]

template<>
int BIAS::ImageConvert::BGRToHSL_ ( const Image< unsigned char > &  source,
Image< unsigned char > &  dest 
) [inline]

template<class StorageType>
int BIAS::ImageConvert::BGRToHSL_ ( const Image< StorageType > &  source,
Image< StorageType > &  dest 
) [inline, static, protected]

Definition at line 347 of file ToHSL.cpp.

References BIAS::ImageBase::GetStorageType().

Referenced by ToHSL().

template<class StorageType>
int BIAS::ImageConvert::BGRToRGB_ ( const Image< StorageType > &  source,
Image< StorageType > &  dest 
) [inline, static, protected]

template<class StorageType>
int ImageConvert::BIAS2ipl ( const Image< StorageType > &  source,
IplImage *&  dest 
) [inline, static]

Returns a new, separate IplImage for use with OpenCV created rom the source BIAS Image.

The dest has to be a call by reference "*&" because the pointer itself is changed due to new (JW). The colorChannel order is swapped because OpenCv used BGR - which may be inefficient. See WrapBias2Ipl class, too (jw).

Returns:
newly created IplImage
Todo:
ROIs are not yet kept, when converted to IplImages
Author:
Ingo Thomsen 04.05.2002, Jan Woetzel 2005

Definition at line 3085 of file ImageConvert.cpp.

References BIAS::ImageBase::CM_BGR, BIAS::ImageBase::CM_BGRA, BIAS::ImageBase::CM_Grey, BIAS::ImageBase::CM_RGB, BIAS::ImageBase::GetChannelCount(), BIAS::ImageBase::GetColorModel(), BIAS::ImageBase::GetHeight(), BIAS::Image< StorageType >::GetImageData(), BIAS::ImageBase::GetPixelCount(), BIAS::ImageBase::GetSizeByte(), BIAS::ImageBase::GetWidth(), and BIAS::ImageBase::IsPlanar().

Referenced by BIAS::CheckerboardDetector::Compute().

template<class StorageType>
void ImageConvert::ClearBorders_ ( StorageType *  rgb,
int  sx,
int  sy,
int  w 
) [inline, static, protected]

Definition at line 3873 of file ImageConvert.cpp.

Referenced by BayerToRGBBilinear_().

template<class StorageType>
void ImageConvert::CLIP ( StorageType &  in,
StorageType &  out 
) [inline, static, protected]

Definition at line 4299 of file ImageConvert.cpp.

template<class StorageType>
void ImageConvert::CLIP16 ( StorageType &  in,
StorageType &  out,
StorageType  bits 
) [inline, static, protected]

Definition at line 4306 of file ImageConvert.cpp.

long BIAS::Debug::ConsumeNextFreeDebuglevel_ (  )  [inline, protected, inherited]

returns the next available debuglevel

Author:
woelk 09/2006

Definition at line 522 of file Debug.hh.

int ImageConvert::Convert ( BIAS::ImageBase source,
BIAS::ImageBase dest,
enum BIAS::ImageBase::EColorModel  targetColorModel,
bool  bPlanar = false 
) [static]

main general function, calls desired specialized functions, always initializes the destImage(if not source==dest)

Author:
Daniel Grest, Nov. 2002
Examples:
ExampleContourDetectorBSpline.cpp.

Definition at line 136 of file ImageConvert.cpp.

References BIAS::ImageBase::CM_Grey, BIAS::ImageBase::CM_HSL, BIAS::ImageBase::CM_hsL, BIAS::ImageBase::CM_HSV, BIAS::ImageBase::CM_RGB, BIAS::ImageBase::CM_RGBA, BIAS::ImageBase::GetColorModel(), BIAS::ImageBase::GetStorageType(), IP_ToGrey(), BIAS::ImageBase::IsPlanar(), BIAS::ImageBase::ST_char, BIAS::ImageBase::ST_double, BIAS::ImageBase::ST_float, BIAS::ImageBase::ST_int, BIAS::ImageBase::ST_invalid, BIAS::ImageBase::ST_shortint, BIAS::ImageBase::ST_unsignedchar, BIAS::ImageBase::ST_unsignedint, BIAS::ImageBase::ST_unsignedshortint, BIAS::ImageBase::StealImage(), ToGrey(), TohsL(), ToHSL(), ToHSV(), ToInterleaved(), ToPlanar(), ToRGB(), and ToRGBA().

Referenced by BIAS::ImageBlender::BlendImages(), BIAS::ImageBlender::ConvertImageToRGBA(), BIAS::ImageConvertThreaded::ConvertThread_(), BIAS::GuiBase::ConvertToUC_(), BIAS::Median< InputStorageType, OutputStorageType >::Filter3x3x3Color(), BIAS::DeInterlace< InputStorageType, OutputStorageType >::FilterColorImg(), BIAS::Median< InputStorageType, OutputStorageType >::FilterColorImg(), BIAS::Bilateral< InputStorageType, OutputStorageType >::FilterColorImg(), BIAS::VideoSource_Disk_Bayer::GrabSingle(), BIAS::FilterDialogCannyEdge< InputST, OutputST >::OnFilterButton(), BIAS::FilterDialogMedian< InputST, OutputST >::OnFilterButton(), BIAS::ImageCanvasCheckerboardExtract::RefreshDrawIm_(), BIAS::ImageCanvasEnhanced::RefreshDrawIm_(), BIAS::ColorSegmentation::Segment(), BIAS::ColorSegmentationThreaded::Segment(), BIAS::GuiBase::ShowImage(), and BIAS::ScaledImageCanvas::UpdateScaleOffset().

template<class sourceType>
void BIAS::ImageConvert::ConvertRGBToI1I2I3Worker_ ( const sourceType *  soP,
float *  siP,
int  size 
) [inline, static, protected]

Definition at line 1437 of file ImageConvert.cpp.

int ImageConvert::ConvertST ( const BIAS::ImageBase source,
BIAS::ImageBase dest,
ImageBase::EStorageType  targetST 
) [static]

ask Friso

Author:
Friso Evers
Examples:
ExampleBilateral.cpp, ExampleLineMatcher.cpp, and ExampleMixtureOfGaussians.cpp.

Definition at line 2847 of file ImageConvert.cpp.

References FloatToUC_(), BIAS::ImageBase::GetChannelCount(), BIAS::ImageBase::GetColorModel(), BIAS::ROI::GetCorners(), BIAS::ImageBase::GetHeight(), BIAS::ImageBase::GetImageData(), BIAS::ImageBase::GetPixelCount(), BIAS::ImageBase::GetROI(), BIAS::ImageBase::GetStorageType(), BIAS::ImageBase::GetWidth(), BIAS::ImageBase::Init(), BIAS::ImageBase::IsEmpty(), BIAS::ImageBase::Release(), BIAS::ImageBase::SetColorModel(), BIAS::ROI::SetCorners(), BIAS::ImageBase::ST_char, BIAS::ImageBase::ST_float, BIAS::ImageBase::ST_int, BIAS::ImageBase::ST_shortint, BIAS::ImageBase::ST_unsignedchar, and BIAS::ImageBase::ST_unsignedshortint.

Referenced by BIAS::CornerDetectorGradient< StorageType, CalculationType >::_CalcCornerness(), BIAS::ImageBlender::BlendImages(), BIAS::BVWXMainFrame::ConvertFLtoUC(), BIAS::GuiBase::ConvertToUC_(), BIAS::FilterDialogBase< InputST, OutputST >::CopyOriginalImage(), BIAS::MixtureOfGaussians< StorageType >::CreateNormalizedImage_(), BIAS::CornerDetectorGradient< StorageType, CalculationType >::Detect(), BIAS::Dilation< InputStorageType, OutputStorageType >::Dilate3Fast(), BIAS::Gauss< InputStorageType, OutputStorageType >::Filter(), BIAS::GaussThreshold< InputStorageType, OutputStorageType >::Filter(), BIAS::Label::Filter(), BIAS::DistTransform< InputStorageType, OutputStorageType >::Filter(), BIAS::CylindricDepthPanorama::GetPanorama(), BIAS::SphericalDepthPanorama::GetPanorama(), BIAS::CylindricDepthPanorama::GetTriangleMesh(), BIAS::SphericalDepthPanorama::GetTriangleMesh(), BIAS::VideoSource_PMD::GrabSingle(), BIAS::CheckerBoardExtractFrame::HandleImage(), BIAS::ClickCornersFrame::HandleImage(), HSLToRGB_(), BIAS::ShowCamWxFrame::InitCameras(), BIAS::PyramidImage< StorageType >::InitFromImageBase(), BIAS::Label::Label4Neighbour(), BIAS::IOUtils::LoadFloat(), BIAS::ExampleMixtureOfGaussiansFrame::OnTimer(), BIAS::Tracker< StorageType, CalculationType >::PreparePyramide(), BIAS::Label::Process(), BIAS::BlobDetectorCCA< StorageType >::Process_(), BIAS::CylindricDepthPanorama::ProcessCylindricProjection(), BIAS::GuiBase::ShowImage(), BIAS::ConvertHDR< StorageType >::ToUnsignedCharGamma(), and BIAS::ScaledImageCanvas::UpdateScaleOffset().

bool BIAS::Debug::DebugLevelIsSet ( const std::string &  name  )  const [inline, inherited]

Definition at line 351 of file Debug.hh.

bool BIAS::Debug::DebugLevelIsSet ( const long int  lv  )  const [inline, inherited]

Examples:
ExampleTriangulateOptimal.cpp.

Definition at line 342 of file Debug.hh.

Referenced by BIAS::GenSynthMatches::_AddUniformDistributedOutliers(), BIAS::Rescale< InputStorageType, OutputStorageType >::_ApplyMeanFilter(), BIAS::CornerDetectorGradient< StorageType, CalculationType >::_CalcCornerness(), BIAS::GaussThreshold< InputStorageType, OutputStorageType >::_CalculateKernels(), BIAS::Gauss< InputStorageType, OutputStorageType >::_CalculateKernels(), BIAS::LinearRegionDetector< StorageType, CalculationType >::_ComputeCornerness(), BIAS::CornerDetectorKLT< StorageType, CalculationType >::_ComputeCornerness(), BIAS::GenSynthMatches::_CreateCamMovement(), BIAS::GenSynthMatches::_CreateStatic2DPoints(), BIAS::Rescale< InputStorageType, OutputStorageType >::_FillInterpolated(), BIAS::Rescale< InputStorageType, OutputStorageType >::_FillInterpolatedColor(), BIAS::Rescale< InputStorageType, OutputStorageType >::_FillInterpolatedGrey(), BIAS::ImageBlender::BlendImages(), BIAS::StructureTensor< InputStorageType, OutputStorageType >::CalcStructureTensor(), BIAS::StructureTensor< InputStorageType, OutputStorageType >::CalcStructureTensor3x3(), BIAS::StructureTensor< InputStorageType, OutputStorageType >::CalcStructureTensor5x5(), BIAS::StructureTensor< InputStorageType, OutputStorageType >::CalcStructureTensor7x7(), BIAS::StructureTensor< InputStorageType, OutputStorageType >::CalcStructureTensorValid(), BIAS::UnscentedTransform::ComputeSigmaPoints_(), BIAS::Triangulation::CorrectCorrespondences(), BIAS::CornerDetectorGradient< StorageType, CalculationType >::Detect(), BIAS::Rescale< InputStorageType, OutputStorageType >::DownsampleBy2Color(), BIAS::Binomial< InputStorageType, OutputStorageType >::Filter3x3ValidGreyFloat(), BIAS::Binomial< InputStorageType, OutputStorageType >::Filter5x5ValidGreyFloat(), BIAS::Convolution< InputStorageType, OutputStorageType >::FilterFloat(), BIAS::Convolution< InputStorageType, OutputStorageType >::FilterInt(), BIAS::RANSAC< SolutionType >::GenerateSamplesRandom(), BIAS::GenSynthMatches::GetGTNormalizedF(), BIAS::Tracker< StorageType, CalculationType >::PreparePyramide(), and BIAS::MonteCarloTransform::Transform().

int ImageConvert::DeinterleaveHorizontal ( const BIAS::ImageBase raw,
BIAS::ImageBase out 
) [static]

template<>
int BIAS::ImageConvert::DVToRGB_ ( const Image< unsigned char > &  source,
Image< unsigned char > &  dest,
unsigned char  quality 
) [inline]

template<class StorageType>
int BIAS::ImageConvert::DVToRGB_ ( const Image< StorageType > &  source,
Image< StorageType > &  dest,
unsigned char  quality = 4 
) [inline, static]

foreign image formats, ipl, vil so far untested

Can specify speed/quality trade off 0 : monochrome , DC coeffs only 1 : monochrome , AC 1 coeffs 2 : color , DC coeffs only 3 : color , AC 1 coeffs 4 : color, AC 2 coeffs (slowest but best quality)

Definition at line 1890 of file ImageConvert.cpp.

Referenced by ToGrey(), and ToRGB().

int ImageConvert::FloatToUC_ ( const ImageBase source,
ImageBase dest 
) [static, protected]

template<class StorageType>
int BIAS::ImageConvert::FromInterleaved ( const Image< StorageType > &  source,
Image< StorageType > &  Image1,
Image< StorageType > &  Image2,
Image< StorageType > &  Image3 
) [inline, static]

extracts color planes to argument images without changing source.

So far only implemented for CM_YUYV422

Author:
Felix Woelk alpha (18/04/2002)

Definition at line 143 of file ToPlanar.cpp.

References BIAS::ImageBase::CM_RGB, BIAS::ImageBase::CM_YUYV422, FromInterleavedRGB_(), FromInterleavedYUYV422_(), BIAS::ImageBase::GetChannelCount(), BIAS::ImageBase::GetColorModel(), BIAS::ImageBase::IsEmpty(), and BIAS::ImageBase::IsPlanar().

template<class StorageType>
int BIAS::ImageConvert::FromInterleavedRGB_ ( const Image< StorageType > &  source,
Image< StorageType > &  R,
Image< StorageType > &  G,
Image< StorageType > &  B 
) [inline, static, protected]

template<class StorageType>
int BIAS::ImageConvert::FromInterleavedYUYV422_ ( const Image< StorageType > &  source,
Image< StorageType > &  Y,
Image< StorageType > &  U,
Image< StorageType > &  V 
) [inline, static, protected]

int BIAS::ImageConvert::GetChannel ( ImageBase image,
int  channel,
bool  strip = false 
) [static]

in place: Crop selected channel.

(will actually copy values from selected channel to all other channels)

Parameters:
strip resulting image will have only one channel, other channels are thrown away
Author:
Christian Beder, fkellner

Definition at line 500 of file ImageConvert.cpp.

References BIAS::ImageBase::ChannelCount_, BIAS::ImageBase::CM_Grey, BIAS::ImageBase::Depth_, BIAS::ImageBase::GetChannelCount(), BIAS::ImageBase::GetDepth(), BIAS::ImageBase::GetImageData(), BIAS::ImageBase::GetPixelCount(), BIAS::ImageBase::ImageData_, BIAS::ImageBase::SetColorModel(), BIAS::ImageBase::UpdateImageDataArrayFromImageData_(), BIAS::ImageBase::Width_, and BIAS::ImageBase::WidthStep_.

template<class StorageType>
int BIAS::ImageConvert::GetChannel ( Image< StorageType > &  image,
int  channel,
bool  strip = false 
) [inline, static]

in place: Crop the selected channel.

(will actually copy values from selected channel to all other channels)

Parameters:
strip resulting image will have only one channel, other channels are thrown away
Author:
Christoffer Menk, fkellner

Definition at line 463 of file ImageConvert.cpp.

References BIAS::ImageBase::ChannelCount_, BIAS::ImageBase::CM_Grey, BIAS::ImageBase::Depth_, BIAS::ImageBase::GetChannelCount(), BIAS::Image< StorageType >::GetImageData(), BIAS::ImageBase::GetPixelCount(), BIAS::ImageBase::ImageData_, BIAS::ImageBase::SetColorModel(), BIAS::ImageBase::UpdateImageDataArrayFromImageData_(), BIAS::ImageBase::Width_, and BIAS::ImageBase::WidthStep_.

template<class StorageType>
int BIAS::ImageConvert::GetChannel ( const Image< StorageType > &  source,
Image< StorageType > &  dest,
const unsigned int  channel 
) [inline, static]

Create a new image dest by cropping one of the source images channels.

Unlike GetChannel(Image<StorageType>& image, int channel), this one really creates a new single-channel image with the selected channel of the source. fkellner: Other GetChannels now have "strip" param, doing the same in-place.

Author:
Patrick Fittkau

Definition at line 548 of file ImageConvert.cpp.

References BIAS::ImageBase::ChannelCount_, BIAS::ImageBase::CM_Grey, BIAS::ImageBase::Depth_, BIAS::ImageBase::GetChannelCount(), BIAS::ImageBase::GetHeight(), BIAS::Image< StorageType >::GetImageData(), BIAS::ImageBase::GetStorageType(), BIAS::ImageBase::GetWidth(), BIAS::Image< StorageType >::Init(), BIAS::ImageBase::IsEmpty(), BIAS::ImageBase::IsPlanar(), BIAS::Image< StorageType >::Release(), BIAS::ImageBase::SetColorModel(), BIAS::ImageBase::Width_, and BIAS::ImageBase::WidthStep_.

Referenced by BIAS::BVWXMainFrame::LoadImageFromList(), and BIAS::MainFrame::LoadImageFromList().

int BIAS::Debug::GetDebugLevel (  )  const [inline, inherited]

void BIAS::Debug::GetDebugStream ( std::ostream &  os  )  const [inline, inherited]

Definition at line 415 of file Debug.hh.

std::ostream& BIAS::Debug::GetDebugStream (  )  const [inline, inherited]

static long int BIAS::Debug::GetGlobalDebugLevel (  )  [inline, static, inherited]

template<class StorageType>
int BIAS::ImageConvert::GreyToRGB_ ( const Image< StorageType > &  source,
Image< StorageType > &  dest 
) [inline, static, protected]

template<class StorageType>
int BIAS::ImageConvert::HSLToGrey_ ( const Image< StorageType > &  source,
Image< StorageType > &  dest 
) [inline, static, protected]

template<class StorageType>
int BIAS::ImageConvert::HSLToRGB_ ( const BIAS::Image< StorageType > &  source,
BIAS::Image< StorageType > &  dest 
) [inline, static, protected]

template<class StorageType>
int BIAS::ImageConvert::HSVToRGB_ ( const Image< StorageType > &  source,
Image< StorageType > &  dest 
) [inline, static, protected]

template<class StorageType>
int BIAS::ImageConvert::IP_RGBToGrey_ ( Image< StorageType > &  img  )  [inline, static, protected]

template<class StorageType>
int BIAS::ImageConvert::IP_ToGrey ( Image< StorageType > &  img  )  [inline, static]

template<class StorageType>
int BIAS::ImageConvert::IP_YUV422ToGrey_ ( Image< StorageType > &  img  )  [inline, static, protected]

template<class StorageType>
int ImageConvert::Ipl2BIAS ( IplImage *  source,
Image< StorageType > &  dest 
) [inline, static]

Takes the image information and data of an existing IplImage and builds a Image.

The existing data is discarded.

Author:
Ingo Thomsen
Date:
04.17.2002
Returns:
-1 in case of failure
Parameters:
image The IplImage to be transfered untested
Todo:
Make it work for colored images
Todo:
Make it work for ROIs

Definition at line 3228 of file ImageConvert.cpp.

References BIAS::Image< StorageType >::GetImageData(), BIAS::ImageBase::GetSizeByte(), BIAS::Image< StorageType >::Init(), BIAS::ImageBase::IsEmpty(), and BIAS::Image< StorageType >::Release().

template<class StorageType>
int ImageConvert::LUVToRGB ( const BIAS::Image< float > &  source,
BIAS::Image< StorageType > &  dest,
float  scale = 255.0 
) [inline, static]

Author:
frick

Definition at line 1300 of file ImageConvert.cpp.

References LUVToXYZ(), and XYZToRGB().

int ImageConvert::LUVToXYZ ( const BIAS::Image< float > &  source,
BIAS::Image< float > &  dest 
) [static]

long int BIAS::Debug::Name2DebugLevel ( const std::string &  name  )  const [inline, inherited]

looks up a debuglevel in the internal map, returns 0 if not found

Author:
woelk 09/2006

Definition at line 455 of file Debug.hh.

long int BIAS::Debug::NewDebugLevel ( const std::string &  name  )  [inline, inherited]

void BIAS::Debug::PrintDebugLevel ( std::ostream &  os = std::cout  )  const [inline, inherited]

Examples:
ExampleDebug.cpp.

Definition at line 384 of file Debug.hh.

void BIAS::Debug::RemoveDebugLevel ( const std::string &  name  )  [inline, inherited]

Definition at line 377 of file Debug.hh.

void BIAS::Debug::RemoveDebugLevel ( const long int  lv  )  [inline, inherited]

Definition at line 370 of file Debug.hh.

template<class StorageType>
int BIAS::ImageConvert::RGBAToRGB_ ( const Image< StorageType > &  source,
Image< StorageType > &  dest 
) [inline, static, protected]

template<class StorageType>
int BIAS::ImageConvert::RGBToGrey_ ( const Image< StorageType > &  source,
Image< StorageType > &  dest 
) [inline, static, protected]

template<>
BIASImageBase_EXPORT int BIAS::ImageConvert::RGBTohsL_ ( const Image< unsigned char > &  source,
Image< unsigned char > &  dest 
) [inline]

template<>
BIASImageBase_EXPORT int BIAS::ImageConvert::RGBTohsL_ ( const Image< float > &  source,
Image< float > &  dest 
) [inline]

template<>
BIASImageBase_EXPORT int BIAS::ImageConvert::RGBTohsL_ ( const Image< int > &  source,
Image< int > &  dest 
) [inline]

template<>
int BIAS::ImageConvert::RGBToHSL_ ( const Image< unsigned char > &  source,
Image< unsigned char > &  dest 
) [inline]

template<>
int BIAS::ImageConvert::RGBToHSL_ ( const Image< float > &  source1,
Image< float > &  dest 
) [inline]

template<class StorageType>
BIASImageBase_EXPORT int BIAS::ImageConvert::RGBTohsL_ ( const Image< StorageType > &  source,
Image< StorageType > &  dest 
) [inline, static, protected]

Definition at line 603 of file ToHSL.cpp.

References BIAS::ImageBase::GetStorageType().

Referenced by TohsL().

template<class StorageType>
int BIAS::ImageConvert::RGBToHSL_ ( const Image< StorageType > &  source,
Image< StorageType > &  dest 
) [inline, static, protected]

Definition at line 82 of file ToHSL.cpp.

References BIAS::ImageBase::GetStorageType().

Referenced by ToHSL().

template<>
int BIAS::ImageConvert::RGBToHSV_ ( const Image< unsigned char > &  source,
Image< unsigned char > &  dest 
) [inline]

template<>
int BIAS::ImageConvert::RGBToHSV_ ( const Image< float > &  source1,
Image< float > &  dest 
) [inline]

template<class StorageType>
int BIAS::ImageConvert::RGBToHSV_ ( const Image< StorageType > &  source,
Image< StorageType > &  dest 
) [inline, static, protected]

so far only implemented for StorageType=float

Definition at line 65 of file ToHSV.cpp.

Referenced by ToHSV().

int BIAS::ImageConvert::RGBToI1I2I3 ( const BIAS::ImageBase source,
BIAS::Image< float > &  dest 
) [static]

int ImageConvert::RGBToLAB ( const BIAS::ImageBase source,
BIAS::Image< float > &  dest,
float  scale = 255.0 
) [static]

Definition at line 1284 of file ImageConvert.cpp.

References RGBToXYZ(), and XYZToLAB().

int ImageConvert::RGBToLUV ( const BIAS::ImageBase source,
BIAS::Image< float > &  dest,
float  scale = 255.0 
) [static]

Author:
frick

Definition at line 1270 of file ImageConvert.cpp.

References RGBToXYZ(), and XYZToLUV().

int ImageConvert::RGBToXYZ ( const BIAS::ImageBase source,
BIAS::Image< float > &  dest,
float  scale = 255.0 
) [static]

void BIAS::Debug::SetDebugLevel ( const std::string &  name  )  [inline, inherited]

Definition at line 326 of file Debug.hh.

void BIAS::Debug::SetDebugLevel ( const long int  lv  )  [inline, inherited]

void BIAS::Debug::SetDebugStream ( const std::ostream &  os  )  [inline, inherited]

Examples:
DebugMyMain.cpp.

Definition at line 399 of file Debug.hh.

static void BIAS::Debug::SetGlobalDebugLevel ( long int  lev  )  [inline, static, inherited]

Examples:
DebugMyMain.cpp.

Definition at line 425 of file Debug.hh.

void BIAS::Debug::ShowDebugLevel ( std::ostream &  os = std::cout  )  const [inline, inherited]

prints all internally known debuglevels

Author:
woelk 09/2006
Examples:
ExampleDebug.cpp.

Definition at line 497 of file Debug.hh.

template<class StorageType>
int BIAS::ImageConvert::ToGrey ( const Image< StorageType > &  source,
Image< StorageType > &  dest 
) [inline, static]

int BIAS::ImageConvert::ToGrey ( const ImageBase source,
ImageBase dest 
) [static]

template<class StorageType>
BIASImageBase_EXPORT int BIAS::ImageConvert::TohsL ( const Image< StorageType > &  source,
Image< StorageType > &  dest 
) [inline, static]

create a hsL converted copy of source image in this Release() and Init() are called if necessary.

only for unsigned char similar to HSL but in euclidean coordinates for the CNCC

Author:
Daniel Grest, June 2003 tested for unsigned char interleaved

Definition at line 570 of file ToHSL.cpp.

References BIAS::ImageBase::CM_hsL, BIAS::ImageBase::CM_RGB, BIAS::ImageBase::GetBitDepth(), BIAS::ImageBase::GetChannelCount(), BIAS::ImageBase::GetColorModel(), BIAS::ImageBase::GetHeight(), BIAS::ImageBase::GetStorageType(), BIAS::ImageBase::GetWidth(), BIAS::Image< StorageType >::Init(), BIAS::ImageBase::IsEmpty(), RGBTohsL_(), BIAS::ImageBase::SamePixelAndChannelCount(), and BIAS::ImageBase::SetColorModel().

Referenced by Convert().

template<class StorageType>
BIASImageBase_EXPORT int BIAS::ImageConvert::ToHSL ( const Image< StorageType > &  source,
Image< StorageType > &  dest 
) [inline, static]

template<class StorageType>
BIASImageBase_EXPORT int BIAS::ImageConvert::ToHSV ( const Image< StorageType > &  source,
Image< StorageType > &  dest 
) [inline, static]

create a HSV converted copy of source image in this Release() and Init() are called if necessary.

HSV space is implemented as a cylinder not as a cone! only for float and unsigned char

Author:
Felix Woelk partially tested

Definition at line 34 of file ToHSV.cpp.

References BIAS::ImageBase::CM_HSV, BIAS::ImageBase::CM_RGB, BIAS::ImageBase::GetChannelCount(), BIAS::ImageBase::GetColorModel(), BIAS::ImageBase::GetHeight(), BIAS::ImageBase::GetStorageType(), BIAS::ImageBase::GetWidth(), BIAS::Image< StorageType >::Init(), BIAS::ImageBase::IsEmpty(), RGBToHSV_(), BIAS::ImageBase::SamePixelAndChannelCount(), and BIAS::ImageBase::SetColorModel().

Referenced by Convert().

template<class StorageType>
BIASImageBase_EXPORT int BIAS::ImageConvert::ToInterleaved ( const Image< StorageType > &  source,
Image< StorageType > &  dest 
) [inline, static]

Takes the source image, and build an interleaved version.

Author:
Ingo Thomsen
Date:
11.06.2002 tested
Todo:
make it work for yuv

Definition at line 33 of file ToInterleaved.cpp.

References BIAS::ImageBase::CM_BGR, BIAS::ImageBase::CM_Grey, BIAS::ImageBase::CM_HSV, BIAS::ImageBase::CM_RGB, BIAS::ImageBase::GetColorModel(), and ToInterleavedRGB_().

Referenced by Convert().

template<class StorageType>
int BIAS::ImageConvert::ToInterleavedRGB ( const Image< StorageType > &  red,
const Image< StorageType > &  green,
const Image< StorageType > &  blue,
Image< StorageType > &  dest 
) [inline, static]

template<class StorageType>
int BIAS::ImageConvert::ToInterleavedRGB_ ( const Image< StorageType > &  source,
Image< StorageType > &  dest 
) [inline, static, protected]

template<class StorageType>
int BIAS::ImageConvert::ToInterleavedYUYV422_ ( const Image< StorageType > &  source,
Image< StorageType > &  dest 
) [inline, static, protected]

Definition at line 100 of file ToInterleaved.cpp.

template<class StorageType>
BIASImageBase_EXPORT int BIAS::ImageConvert::ToPlanar ( const Image< StorageType > &  source,
Image< StorageType > &  dest 
) [inline, static]

template<class StorageType>
int BIAS::ImageConvert::ToPlanarRGB_ ( const Image< StorageType > &  source,
Image< StorageType > &  dest 
) [inline, static, protected]

template<class StorageType>
int BIAS::ImageConvert::ToPlanarYUYV422_ ( const Image< StorageType > &  source,
Image< StorageType > &  dest 
) [inline, static, protected]

template<class StorageType>
int BIAS::ImageConvert::ToRGB ( const Image< StorageType > &  source,
Image< StorageType > &  dest 
) [inline, static]

Create a RGB converted copy of source image in this.

Release() and Init() are called if necessary.

Author:
Felix Woelk
Examples:
ExampleConvertRAW.cpp, and ExampleMixtureOfGaussians.cpp.

Definition at line 1549 of file ImageConvert.cpp.

References BayerToRGB_(), BGRAToRGB_(), BGRToRGB_(), BIAS::ImageBase::CM_Bayer_BGGR, BIAS::ImageBase::CM_Bayer_GBRG, BIAS::ImageBase::CM_Bayer_GRBG, BIAS::ImageBase::CM_Bayer_RGGB, BIAS::ImageBase::CM_BGR, BIAS::ImageBase::CM_BGRA, BIAS::ImageBase::CM_Depth, BIAS::ImageBase::CM_DepthAndVariance, BIAS::ImageBase::CM_Disparity, BIAS::ImageBase::CM_DV, BIAS::ImageBase::CM_Grey, BIAS::ImageBase::CM_HSL, BIAS::ImageBase::CM_HSV, BIAS::ImageBase::CM_PGR_XB3_F7M3_GBRG, BIAS::ImageBase::CM_RGB, BIAS::ImageBase::CM_RGBA, BIAS::ImageBase::CM_UYVY422, BIAS::ImageBase::CM_YUV420P, BIAS::ImageBase::CM_YUYV422, DeinterleaveHorizontal(), DVToRGB_(), BIAS::ImageBase::GetChannelCount(), BIAS::ImageBase::GetColorModel(), BIAS::ImageBase::GetHeight(), BIAS::Image< StorageType >::GetImageData(), BIAS::ImageBase::GetStorageType(), BIAS::ImageBase::GetWidth(), GreyToRGB_(), HSLToRGB_(), HSVToRGB_(), BIAS::Image< StorageType >::Init(), BIAS::ImageBase::IsEmpty(), BIAS::Image< StorageType >::Release(), RGBAToRGB_(), BIAS::ImageBase::SetColorModel(), YUV420PToRGB_(), and YUV422ToRGB_().

Referenced by BIAS::ImageBlender::AddCamera(), BIAS::CheckerboardDetector::Compute(), Convert(), BIAS::BlobDetectorBFS< StorageType >::DrawInImage(), BIAS::ExampleMixtureOfGaussiansFrame::grabImages_(), BIAS::VideoSource_Disk_Bayer::GrabSingle(), BIAS::CheckerBoardExtractFrame::HandleImage(), BIAS::ClickCornersFrame::HandleImage(), BIAS::SceneBGImage::InitializeTexture_(), BIAS::VideoTransmitter::Process(), BIAS::VideoServer::ProcessOneImage(), BIAS::SceneBGImage::SetImage(), BIAS::VideoSource::SoftwareWhiteBalance(), ToHSL(), ToRGBA(), and BIAS::FitCircleFrame::UpdateImage().

template<class StorageType>
int BIAS::ImageConvert::ToRGBA ( const Image< StorageType > &  source,
Image< StorageType > &  dest 
) [inline, static]

int ImageConvert::XYZToLAB ( const BIAS::Image< float > &  source,
BIAS::Image< float > &  dest 
) [static]

int ImageConvert::XYZToLUV ( const BIAS::Image< float > &  source,
BIAS::Image< float > &  dest 
) [static]

template<class StorageType>
int ImageConvert::XYZToRGB ( const BIAS::Image< float > &  source,
BIAS::Image< StorageType > &  dest,
float  scale = 255.0 
) [inline, static]

template<class StorageType>
int BIAS::ImageConvert::YUV411ToGrey_ ( const Image< StorageType > &  source,
Image< StorageType > &  dest 
) [inline, static, protected]

template<class StorageType>
int BIAS::ImageConvert::YUV420PToGrey_ ( const Image< StorageType > &  source,
Image< StorageType > &  dest 
) [inline, static, protected]

template<class StorageType>
int BIAS::ImageConvert::YUV420PToRGB_ ( const Image< StorageType > &  source,
Image< StorageType > &  dest 
) [inline, static, protected]

template<class StorageType>
int BIAS::ImageConvert::YUV422ToGrey_ ( const Image< StorageType > &  source,
Image< StorageType > &  dest 
) [inline, static, protected]

template<class StorageType>
int BIAS::ImageConvert::YUV422ToRGB_ ( const Image< StorageType > &  source,
Image< StorageType > &  dest 
) [inline, static, protected]


Friends And Related Function Documentation

friend class ImageBase [friend]

Definition at line 83 of file ImageConvert.hh.


Member Data Documentation

long int BIAS::Debug::_liDebugLevel [protected, inherited]

long int BIAS::Debug::_liNextDebugLevel [protected, inherited]

new concept, debuglevel are managed here in the debug class

Definition at line 517 of file Debug.hh.

Referenced by BIAS::Debug::operator=().

std::map<std::string, long int> BIAS::Debug::_String2Debuglevel [protected, inherited]

Definition at line 518 of file Debug.hh.

Referenced by BIAS::Debug::operator=().

std::ostream BIAS::Debug::_zDebugStream [static, protected, inherited]

dv_decoder_t * ImageConvert::DVDecoder_ = NULL [static, protected]

Definition at line 594 of file ImageConvert.hh.

Referenced by DVToRGB_().

long int BIAS::Debug::GlobalDebugLevel = 0 [static, protected, inherited]

Definition at line 514 of file Debug.hh.


The documentation for this class was generated from the following files:

Generated on Mon Mar 15 01:11:13 2010 for Basic Image AlgorithmS Library by  doxygen 1.5.6