TLIB documentation
 

tlObject.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 __TLOBJECT_H__
00018 #define __TLOBJECT_H__
00019 
00020 
00021 #include "tlVision.h"
00022 #include "tlPixelArray.h"
00023 
00024 
00025 
00026 class tlObject : public tlPixelArray
00027 {
00028 public:
00029   tlMask *        shape;
00030   tlConst<float>* vx;
00031   tlConst<float>* vy;
00032 
00033 
00034   // constructors
00035   tlObject  ();
00036   tlObject  (tl_format format, int x, int y, int width, int height);
00037   virtual ~tlObject ();
00038 
00039   // management
00040   int copy   (tlObject *object);
00041   int copyTo (tlObject *object);
00042 
00043   // object definition
00044   int define      (tlImage *image, tlRect *rect);
00045   int define      (tlImage *image, tlColor *minColor, tlColor *maxColor, tlRect *rect);
00046 
00047   // data access
00048   tlPoint *getPredictedPosition ();
00049   int     getPredictedX ();
00050   int     getPredictedY ();
00051 
00052   // object extraction
00053   int extract       (tlImage *image, tlPoint *point, tlColor *gapColor, tlColor *varColor, int connex=TL_CONNEX_4);
00054   int extract       (tlImage *image, tlPoint *point, tlColor *gapColor, tlColor *varColor, tlRect *rect, int connex=TL_CONNEX_4);
00055   int extract       (tlImage *image, tlPoint *point, tlColorModel *colorModel, int threshold, int connex=TL_CONNEX_4);
00056   int extract       (tlImage *image, tlPoint *point, tlColorModel *colorModel, tlRect *rect, int threshold, int connex=TL_CONNEX_4);
00057 };
00058 
00059 
00060 #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.