TLIB documentation
 

tlFormatConversion.h

Go to the documentation of this file.
00001 /////////////////////////////////////////////////////////////////////////////////
00002 //
00003 //  This file is part of the TLIB computer vision library.
00004 //  Copyright (C) 2003-2008 Sebastien Grange
00005 //  Copyright (C) 2003-2007 VRAI Group, EPFL
00006 //  All rights reserved.
00007 // 
00008 //  This library is free software; you can redistribute it and/or modify
00009 //  it under the terms of the GNU General Public License("GPL") version 2
00010 //  as published by the Free Software Foundation.
00011 // 
00012 //  <http://www.tuyphon.com/tlib>
00013 //
00014 /////////////////////////////////////////////////////////////////////////////////
00015 
00016 
00017 #ifndef __TLFORMATCONVERSION_H__
00018 #define __TLFORMATCONVERSION_H__
00019 
00020 
00021 #include "tlVision.h"
00022 
00023 
00024 
00025 int tl_rgb2hsi  (tlPixel *src, int width, int height, tlRect *rect, tlPixel *dest);
00026 int tl_rgb2hsi  (tlPixel *src, int width, int height, tlPixel *mask, tlRect *rect, tlPixel *dest);
00027 
00028 int tl_rgb2yuv  (tlPixel *src, int width, int height, tlRect *rect, tlPixel *dest);
00029 int tl_rgb2yuv  (tlPixel *src, int width, int height, tlPixel *mask, tlRect *rect, tlPixel *dest);
00030 
00031 int tl_rgb2nrg  (tlPixel *src, int width, int height, tlRect *rect, tlPixel *dest);
00032 int tl_rgb2nrg  (tlPixel *src, int width, int height, tlPixel *mask, tlRect *rect, tlPixel *dest);
00033 
00034 int tl_rgb2gray (tlPixel *src, int width, int height, tlRect *rect, tlPixel *dest);
00035 int tl_rgb2gray (tlPixel *src, int width, int height, tlPixel *mask, tlRect *rect, tlPixel *dest);
00036 
00037 int tl_rgb2bin  (tlPixel *src, int width, int height, int min, int max, tlRect *rect, tlPixel *dest);
00038 int tl_rgb2bin  (tlPixel *src, int width, int height, int min, int max, tlPixel *mask, tlRect *rect, tlPixel *dest);
00039 
00040 
00041 int tl_hsi2rgb  (tlPixel *src, int width, int height, tlRect *rect, tlPixel *dest);
00042 int tl_hsi2rgb  (tlPixel *src, int width, int height, tlPixel *mask, tlRect *rect, tlPixel *dest);
00043 
00044 int tl_hsi2yuv  (tlPixel *src, int width, int height, tlRect *rect, tlPixel *dest);
00045 int tl_hsi2yuv  (tlPixel *src, int width, int height, tlPixel *mask, tlRect *rect, tlPixel *dest);
00046 
00047 int tl_hsi2nrg  (tlPixel *src, int width, int height, tlRect *rect, tlPixel *dest);
00048 int tl_hsi2nrg  (tlPixel *src, int width, int height, tlPixel *mask, tlRect *rect, tlPixel *dest);
00049 
00050 int tl_hsi2gray (tlPixel *src, int width, int height, tlRect *rect, tlPixel *dest);
00051 int tl_hsi2gray (tlPixel *src, int width, int height, tlPixel *mask, tlRect *rect, tlPixel *dest);
00052 
00053 int tl_hsi2bin  (tlPixel *src, int width, int height, int min, int max, tlRect *rect, tlPixel *dest);
00054 int tl_hsi2bin  (tlPixel *src, int width, int height, int min, int max, tlPixel *mask, tlRect *rect, tlPixel *dest);
00055 
00056 
00057 int tl_yuv2rgb  (tlPixel *src, int width, int height, tlRect *rect, tlPixel *dest);
00058 int tl_yuv2rgb  (tlPixel *src, int width, int height, tlPixel *mask, tlRect *rect, tlPixel *dest);
00059 
00060 int tl_yuv2hsi  (tlPixel *src, int width, int height, tlRect *rect, tlPixel *dest);
00061 int tl_yuv2hsi  (tlPixel *src, int width, int height, tlPixel *mask, tlRect *rect, tlPixel *dest);
00062 
00063 int tl_yuv2nrg  (tlPixel *src, int width, int height, tlRect *rect, tlPixel *dest);
00064 int tl_yuv2nrg  (tlPixel *src, int width, int height, tlPixel *mask, tlRect *rect, tlPixel *dest);
00065 
00066 int tl_yuv2gray (tlPixel *src, int width, int height, tlRect *rect, tlPixel *dest);
00067 int tl_yuv2gray (tlPixel *src, int width, int height, tlPixel *mask, tlRect *rect, tlPixel *dest);
00068 
00069 int tl_yuv2bin  (tlPixel *src, int width, int height, int min, int max, tlRect *rect, tlPixel *dest);
00070 int tl_yuv2bin  (tlPixel *src, int width, int height, int min, int max, tlPixel *mask, tlRect *rect, tlPixel *dest);
00071 
00072 
00073 int tl_nrg2gray (tlPixel *src, int width, int height, tlRect *rect, tlPixel *dest);
00074 int tl_nrg2gray (tlPixel *src, int width, int height, tlPixel *mask, tlRect *rect, tlPixel *dest);
00075 
00076 int tl_nrg2bin  (tlPixel *src, int width, int height, int min, int max, tlRect *rect, tlPixel *dest);
00077 int tl_nrg2bin  (tlPixel *src, int width, int height, int min, int max, tlPixel *mask, tlRect *rect, tlPixel *dest);
00078 
00079 
00080 int tl_gray2rgb (tlPixel *src, int width, int height, tlRect *rect, tlPixel *dest);
00081 int tl_gray2rgb (tlPixel *src, int width, int height, tlPixel *mask, tlRect *rect, tlPixel *dest);
00082 
00083 int tl_gray2bin (tlPixel *src, int width, int height, int min, int max, tlRect *rect, tlPixel *dest);
00084 int tl_gray2bin (tlPixel *src, int width, int height, int min, int max, tlPixel *mask, tlRect *rect, tlPixel *dest);
00085 
00086 
00087 int tl_hrgray2gray (tlHRPixel *src, int width, int height, tlRect *rect, tlPixel *dest, unsigned char shift = 0);
00088 int tl_hrgray2gray (tlHRPixel *src, int width, int height, tlPixel *mask, tlRect *rect, tlPixel *dest, unsigned char shift = 0);
00089 
00090 int tl_hrgray2bin (tlHRPixel *src, int width, int height, int min, int max, tlRect *rect, tlPixel *dest);
00091 int tl_hrgray2bin (tlHRPixel *src, int width, int height, int min, int max, tlPixel *mask, tlRect *rect, tlPixel *dest);
00092 
00093 
00094 int tl_to_channel (tlPixel *src, int width, int height, int pixel_width, int channel, tlRect *rect, tlPixel *dest);
00095 int tl_to_channel (tlPixel *src, int width, int height, int pixel_width, int channel, tlPixel *mask, tlRect *rect, tlPixel *dest);
00096 
00097 
00098 int tl_put_channel (tlPixel *src, int width, int height, int pixel_width, int channel, tlRect *rect, tlPixel *dest);
00099 
00100 
00101 #endif


TLIB documentation - generated on 7 May 2008
Please address any questions to seb@tuyphon.com
(C) 2001-2008 - S. Grange
(C) 2001-2007 - VRAI Group, EPFL
All Rights Reserved.