Basic Image AlgorithmS Library  2.8.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
CylindricDepthTrackingPanorama.hh
1 #ifndef __CylindricDepthTrackingPanorama_hh_
2 #define __CylindricDepthTrackingPanorama_hh_
3 
4 #include <Base/Common/W32Compat.hh>
5 #include <Geometry/Projection.hh>
6 #include <Geometry/ProjectionParametersCylindric.hh>
7 #include <Image/CylindricDepthPanorama.hh>
8 #include <Image/MixtureOfGaussians.hh>
9 
10 namespace BIAS
11 {
12 
14 {
15 public:
16  CylindricDepthTrackingPanorama(const Projection& initialProjection,
17  unsigned int channels,
18  float depthScale_ = 1.0);
20  /** Call Process to update the measurement */
21  int ProcessCylindricProjection(BIAS::Image<float> &depthMap,
22  BIAS::Projection & p,
23  BIAS::Image<unsigned char> *texture=NULL);
24 
25  int LoadPanorama(const std::string filename);
26  int SavePanorama(const std::string filename);
27 
28  int GetTriangleMesh(BIAS::TriangleMesh &mesh);
29 
30  int GetPanorama(BIAS::Image<float> &image,
32 
33 protected:
39  unsigned int dTexChannels_;
40  float fDepthScale_;
41 private:
42  BIAS::BIASBlob bb_;
43  bool bInited_;
44  int doPanorama(BIAS::Image<float> &depthMap,
45  BIAS::Projection & p,
46  BIAS::Image<unsigned char> *texture=NULL);
47 
48  int doTrack(BIAS::Image<float> &depthMap,
49  BIAS::Projection & p,
50  BIAS::Image<unsigned char> *texture=NULL);
51 
52  BIAS::Image<float> normalizedDepthMap_;
53 };
54 
55 }
56 
57 #endif /*__CylindricDepthTrackingPanorama_hh_*/
BIAS::MixtureOfGaussians< float > * mog_
Helper class to store blob corners.
This class hides the underlying projection model, like projection matrix, spherical camera...
Definition: Projection.hh:70
create and represent cylindric depth panorama
BIAS::Image< unsigned char > panoramaNonStaticTexture_
Create and represent a 3D triangle mesh.
Definition: TriangleMesh.hh:84