Rect.h
上传用户:lijia5631
上传日期:2008-11-10
资源大小:1214k
文件大小:3k
- /**
* cubicles
*
* This is an implementation of the Viola-Jones object detection
* method and some extensions. The code is mostly platform-
* independent and uses only standard C and C++ libraries. It
* can make use of MPI for parallel training and a few Windows
* MFC functions for classifier display.
*
* Mathias Kolsch, matz@cs.ucsb.edu
*
* $Id: Rect.h,v 1.2 2004/09/24 22:26:54 matz Exp $
- **/
// CRect is needed on non-Windows platforms - it is a 4-tuple
// integer vector.
//
////////////////////////////////////////////////////////////////////
- //
- // By downloading, copying, installing or using the software you
- // agree to this license. If you do not agree to this license,
- // do not download, install, copy or use the software.
- //
- // Copyright (C) 2004, Mathias Kolsch, all rights reserved.
- // Third party copyrights are property of their respective owners.
- //
- // Redistribution and use in binary form, with or without
- // modification, is permitted for non-commercial purposes only.
- // Redistribution in source, with or without modification, is
- // prohibited without prior written permission.
- // If granted in writing in another document, personal use and
- // modification are permitted provided that the following two
- // conditions are met:
- //
- // 1.Any modification of source code must retain the above
- // copyright notice, this list of conditions and the following
- // disclaimer.
- //
- // 2.Redistribution's in binary form must reproduce the above
- // copyright notice, this list of conditions and the following
- // disclaimer in the documentation and/or other materials provided
- // with the distribution.
- //
- // This software is provided by the copyright holders and
- // contributors "as is" and any express or implied warranties,
- // including, but not limited to, the implied warranties of
- // merchantability and fitness for a particular purpose are
- // disclaimed. In no event shall the copyright holder or
- // contributors be liable for any direct, indirect, incidental,
- // special, exemplary, or consequential damages (including, but not
- // limited to, procurement of substitute goods or services; loss of
- // use, data, or profits; or business interruption) however caused
- // and on any theory of liability, whether in contract, strict
- // liability, or tort (including negligence or otherwise) arising
- // in any way out of the use of this software, even if advised of
- // the possibility of such damage.
- //
- ////////////////////////////////////////////////////////////////////
-
#ifndef __CRECT__INCLUDED_H_
#define __CRECT__INCLUDED_H_
#ifndef __ATLTYPES_H__
// ----------------------------------------------------------------------
// class CRect
// ----------------------------------------------------------------------
class CRect {
public:
CRect() : left(-1), top(-1), right(-1), bottom(-1) {};
CRect(int _left, int _top, int _right, int _bottom) :
left(_left), top(_top), right(_right), bottom(_bottom) {};
public:
int left, top, right, bottom;
};
#endif // __ATLTYPES_H__
#endif // __CRECT__INCLUDED_H_