Basic Image AlgorithmS Library  2.8.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
VideoShMFeederPMD.hh
1 /*
2 This file is part of the BIAS library (Basic ImageAlgorithmS).
3 
4 Copyright (C) 2003-2009 (see file CONTACT for details)
5  Multimediale Systeme der Informationsverarbeitung
6  Institut fuer Informatik
7  Christian-Albrechts-Universitaet Kiel
8 
9 
10 BIAS 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 2.1 of the License, or
13 (at your option) any later version.
14 
15 BIAS 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 BIAS; if not, write to the Free Software
22 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
23 */
24 
25 #ifndef __VIDEOSHMFEEDERPMD_HH__
26 #define __VIDEOSHMFEEDERPMD_HH__
27 
28 
29 
30 
31 #ifdef WIN32
32 # define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
33 # include <windows.h>
34 #else
35 # include <sys/types.h>
36 # include <sys/mman.h>
37 #include <fcntl.h>
38 #endif
39 
40 
41 #include <sstream>
42 #include <string>
43 
44 // BIAS
45 #include <Base/Debug/Debug.hh>
46 #include <Base/Image/ImageIO.hh>
47 #include <Image/Camera.hh>
48 
49 // MIP
50 #include <VideoSource/VideoSource_ShmPMD.hh>
51 #include <VideoSource/VideoShMFeeder.hh>
52 
53 
54 namespace BIAS {
55 
56 /** @class VideoShMFeederPMD
57  @ingroup g_videosource
58  @brief class to save Images to a Sharerd memory. It also transfers Depth
59  and Amplitude data coming from a PMD camera.
60 
61  @autor streckel 08/2006
62 */
63 class BIASVideoSource_EXPORT VideoShMFeederPMD : public VideoShMFeeder {
64 public:
66  VideoShMFeederPMD(const std::string &filename );
68 
69  bool ProcessImage(BIAS::Camera<unsigned char> *Img2D,
70  BIAS::Camera<float> *ImgDepth,
71  BIAS::Camera<float> *ImgModCoeff);
72 
73 protected:
74  /*!\brief prohibit default function (move to 'public' if needed) */
75  VideoShMFeederPMD(const VideoShMFeederPMD &source);
76  /*!\brief prohibit default function (move to 'public' if needed) */
77  VideoShMFeederPMD& operator =(const VideoShMFeederPMD &source);
78 
79 }; // class VideoShMFeederPMD
80 
81 } // namespace BIAS
82 
83 
84 #endif
85 
86 
class to save Images to a Sharerd memory.
class to save Images to a Sharerd memory