bazar
1.3.1
Main Page
Modules
Classes
Files
Examples
File List
File Members
garfeild
lightcalib
lightcollector.h
Go to the documentation of this file.
1
#ifndef _LIGHTCOLLECTOR_H
2
#define _LIGHTCOLLECTOR_H
3
4
#include <cv.h>
5
6
class
LightMap
;
7
14
class
LightCollector
{
15
public
:
16
LightCollector
();
17
LightCollector
(
const
LightCollector
&lc);
18
~LightCollector
();
19
const
LightCollector
&
operator=
(
LightCollector
&lc);
20
void
copy
(
const
LightCollector
&lc);
21
23
bool
genGrid
(
float
corners[4][2],
int
nx
,
int
ny
);
24
25
void
averageImage
(IplImage *im, CvMat *_homography);
26
27
int
serializeSize
();
28
void
serialize
(
char
*buffer);
29
void
load
(
const
char
*buffer,
int
size);
30
void
invalidate
();
31
32
// for debugging
33
void
drawGrid
(IplImage *im, CvMat *_homography);
34
void
drawAvg
(IplImage *im);
35
36
CvMat *
worldRT
;
37
38
bool
cmpWithRef
(
const
LightCollector
&ref,
float
*val,
const
float
*scale=0,
const
float
*shift=0);
39
40
//friend LightMap;
41
//private:
42
float
*
avg
;
43
CvMat *
vertices
, *
transformed
;
44
int
*
triangles
;
45
int
nbTri
;
46
int
nx
,
ny
;
47
int
avgChannels
;
48
int
nbPix
;
49
};
50
51
#endif
Generated on Tue Jan 15 2013 12:50:21 for bazar by
1.8.1.2