source: level2/competencies/src/CaptureFrame.h @ 157

Revision 157, 1.8 KB checked in by ginevra, 10 years ago (diff)
Line 
1// AUTHOR: Ginevra Castellano
2// Queen Mary University of London
3// DATE: 10/2009
4// VERSION: 1.0
5
6// Copyright (C) 2009 Ginevra Castellano
7
8// This file is part of the FaceTracking program
9
10// FaceTracking is free software: you can redistribute it and/or modify
11// it under the terms of the GNU Lesser General Public License as published by
12// the Free Software Foundation, either version 3 of the License, or
13// (at your option) any later version.
14
15// This program is distributed in the hope that it will be useful,
16// but WITHOUT ANY WARRANTY; without even the implied warranty of
17// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18// GNU Lesser General Public License for more details.
19
20// You should have received a copy of the GNU Lesser General Public License
21// along with this program.  If not, see <http://www.gnu.org/licenses/>.
22
23// FaceTracking uses the OpenCV library
24// Copyright (C) 2000-2006, Intel Corporation, all rights reserved.
25// Third party copyrights are property of their respective owners.
26// See OpenCV_license.txt, in the program folder, for details.
27
28// FaceTracking uses the Camshift wrapper program (see camshift_wrapper.cpp and camshift_wrapper.h)
29// Copyright (c) 2007, Robin Hewitt (http://www.robin-hewitt.com)
30// See License.txt, in the Camshift wrapper folder, for details.
31
32
33
34#ifndef _CAPTURE_FRAME
35#define _CAPTURE_FRAME
36
37class CaptureFrame
38{
39        public:
40        CaptureFrame(void);
41        ~CaptureFrame(void);
42
43        int StartCapture(void);
44        bool CaptureNextFrame(void);
45
46        void AllocateFrames(int width, int height, int channels);
47        void DeallocateFrames(void);
48
49        IplImage* getFrameCopy(void);
50       
51        private:
52        IplImage* frame;
53    IplImage* frameCopy;
54        CvCapture* capture;  // Structure for getting video from camera or avi
55};
56
57#endif
Note: See TracBrowser for help on using the repository browser.