TLIB documentation
 

tlExtract.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 __TLEXTRACT_H__
00018 #define __TLEXTRACT_H__
00019 
00020 #include "tlVision.h"
00021 #include "tlHist2D.h"
00022 
00023 
00024 #define TL_EXTRACT_DATA_DEPTH   4
00025 
00026 
00027 #ifndef NO_DOC
00028 
00029 // research structs
00030 typedef struct {
00031   int       depth;
00032   int       px;
00033   int       py;
00034   int       width;
00035   int       height;
00036   int       *x1;
00037   int       *x2;
00038   int       *y1;
00039   int       *y2;
00040   int       lx1;
00041   int       lx2;
00042   int       ly1;
00043   int       ly2;
00044   int       connectivity;
00045   tlPixel   min[TL_EXTRACT_DATA_DEPTH];
00046   tlPixel   max[TL_EXTRACT_DATA_DEPTH];
00047   int       tol[TL_EXTRACT_DATA_DEPTH];
00048   tlPixel   *src;
00049   char      *objmap;
00050 } tl_extract_data;
00051 
00052 typedef struct {
00053   int      px;
00054   int      py;
00055   int      width;
00056   int      height;
00057   int      *x1;
00058   int      *x2;
00059   int      *y1;
00060   int      *y2;
00061   int      lx1;
00062   int      lx2;
00063   int      ly1;
00064   int      ly2;
00065   int      connectivity;
00066   tlPixel  *src;
00067   char     *objmap;
00068   tlHist2D *cmHist;
00069   int      threshold;
00070 } tl_extract_data_cm;
00071 
00072 #endif
00073 
00074 
00075 // different color channel count generic recursive extraction
00076 int tl_extract (tl_extract_data *data);
00077 
00078 // different color channel count generic non-recursive extraction
00079 int tl_extract_nr (tl_extract_data *data);
00080 
00081 // color-model based recursive extraction
00082 int tl_extract_cm_nrg (tl_extract_data_cm *data);
00083 int tl_extract_cm_hsi (tl_extract_data_cm *data);
00084 
00085 
00086 #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.