-
Notifications
You must be signed in to change notification settings - Fork 0
/
gaincorr.h
49 lines (30 loc) · 987 Bytes
/
gaincorr.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#ifndef GAINCORR_H
#define GAINCORR_H
#include "image_cuda_compatible.h"
#include <vector>
#include <map>
#include "gc_im_container.h"
enum GaincorrType {OFFSET, GAIN};
//! \class Gaincorr
//! \brief: Calculates, contains and reads Gain correction data
//!
//! <<insert long description here >>
class Gaincorr
{
public:
Gaincorr();
void readAndCalculateGain();
void readAndCalculateOffset();
void readgainfactors();
void readoffsetfactors();
void gaincorrigateimage(Image_cuda_compatible &image);
void offsetcorrigateimage(Image_cuda_compatible &image);
private:
std::map<int,Image_cuda_compatible> slopes;
std::map<int,Image_cuda_compatible> intercepts;
std::map<int, int> saturation;
Image_cuda_compatible image; // for temporary holding reasons
std::vector<Image_cuda_compatible> images_temp;
std::string gcfolder; //!< Folder where gc data (slope and intercept) are saved or readen from.
};
#endif // GAINCORR_H