TLIB documentation
 

tlFilter.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 __TLFILTER_H__
00018 #define __TLFILTER_H__
00019 
00020 
00021 #include "tlVision.h"
00022 
00023 
00024 
00025 int tl_filter_rgb  (tlPixel *src, int width, int height, 
00026                     tlPixel r_min, tlPixel r_max,
00027                     tlPixel g_min, tlPixel g_max,
00028                     tlPixel b_min, tlPixel b_max,
00029                     tlRect *rect, tlPixel *dest,
00030                     tlPixel *mask = NULL);
00031 
00032 int tl_filter_hsi  (tlPixel *src, int width, int height, 
00033                     tlPixel h1_min, tlPixel h1_max,
00034                     tlPixel h2_min, tlPixel h2_max,
00035                     tlPixel s_min, tlPixel s_max,
00036                     tlPixel i_min, tlPixel i_max,
00037                     tlRect *rect, tlPixel *dest,
00038                     tlPixel *mask = NULL);
00039 
00040 int tl_filter_nrg  (tlPixel *src, int width, int height, 
00041                     tlPixel nr_min, tlPixel nr_max,
00042                     tlPixel ng_min, tlPixel ng_max,
00043                     tlRect *rect, tlPixel *dest,
00044                     tlPixel *mask = NULL);
00045 
00046 int tl_filter_gray (tlPixel *src, int width, int height, 
00047                     tlPixel intensity_min, tlPixel intensity_max,
00048                     tlRect *rect, tlPixel *dest,
00049                     tlPixel *mask = NULL);
00050 
00051 int tl_filter_hrgray (tlHRPixel *src, int width, int height, 
00052                       tlHRPixel intensity_min, tlHRPixel intensity_max,
00053                       tlRect *rect, tlHRPixel *dest,
00054                       tlPixel *mask = NULL);
00055 
00056 
00057 
00058 
00059 int tl_extract_color_rgb      (tlPixel *src, int width, int height,
00060                                tlColor *minColor, tlColor *maxColor,
00061                                tlRect *rect, tlPixel *mask = NULL);
00062 
00063 int tl_extract_color_min_rgb  (tlPixel *src, int width, int height,
00064                                tlColor *minColor, tlRect *rect, tlPixel *mask = NULL);
00065 
00066 int tl_extract_color_max_rgb  (tlPixel *src, int width, int height,
00067                                tlColor *maxColor, tlRect *rect, tlPixel *mask = NULL);
00068 
00069 
00070 
00071 int tl_extract_color_yuv      (tlPixel *src, int width, int height,
00072                                tlColor *minColor, tlColor *maxColor,
00073                                tlRect *rect, tlPixel *mask = NULL);
00074 
00075 int tl_extract_color_min_yuv  (tlPixel *src, int width, int height,
00076                                tlColor *minColor, tlRect *rect, tlPixel *mask = NULL);
00077 
00078 int tl_extract_color_max_yuv  (tlPixel *src, int width, int height,
00079                                tlColor *maxColor, tlRect *rect, tlPixel *mask = NULL);
00080 
00081 
00082 
00083 int tl_extract_color_hsi      (tlPixel *src, int width, int height,
00084                                tlColor *minColor, tlColor *maxColor,
00085                                tlRect *rect, tlPixel *mask = NULL);
00086 
00087 int tl_extract_color_min_hsi  (tlPixel *src, int width, int height,
00088                                tlColor *minColor, tlRect *rect, tlPixel *mask = NULL);
00089 
00090 int tl_extract_color_max_hsi  (tlPixel *src, int width, int height,
00091                                tlColor *maxColor, tlRect *rect, tlPixel *mask = NULL);
00092 
00093 
00094 
00095 int tl_extract_color_nrg      (tlPixel *src, int width, int height,
00096                                tlColor *minColor, tlColor *maxColor,
00097                                tlRect *rect, tlPixel *mask = NULL);
00098 
00099 int tl_extract_color_min_nrg  (tlPixel *src, int width, int height,
00100                                tlColor *minColor, tlRect *rect, tlPixel *mask = NULL);
00101 
00102 int tl_extract_color_max_nrg  (tlPixel *src, int width, int height,
00103                                tlColor *maxColor, tlRect *rect, tlPixel *mask = NULL);
00104 
00105 
00106 
00107 int tl_extract_color_gray     (tlPixel *src, int width, int height,
00108                                tlColor *minColor, tlColor *maxColor,
00109                                tlRect *rect, tlPixel *mask = NULL);
00110 
00111 int tl_extract_color_min_gray (tlPixel *src, int width, int height,
00112                                tlColor *minColor, tlRect *rect, tlPixel *mask = NULL);
00113 
00114 int tl_extract_color_max_gray (tlPixel *src, int width, int height,
00115                                tlColor *maxColor, tlRect *rect, tlPixel *mask = NULL);
00116 
00117 
00118 #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.