ddt 1.4.0
 
Loading...
Searching...
No Matches
biasBuffer.hpp
Go to the documentation of this file.
1
10
11#ifndef BIASBUFFER_HPP
12#define BIASBUFFER_HPP
13
14#include <algorithm>
15#include <cctype>
16
17#include <sys/stat.h>
18#include "boost/filesystem.hpp"
19
20#include <cpl.h>
21#undef I
22#undef arg
23
26#include "ddt/dataFile.hpp"
29#include "ddt/imageColor.hpp"
30#include "ddt/imageCoords.hpp"
31#include "ddt/imageError.hpp"
32#include "ddt/imageIO.hpp"
33#include "ddt/imageProc.hpp"
34#include "ddt/imageStats.hpp"
35
36#include "ddt/ddtLogger.hpp"
37
38namespace ddt {
39
46
48 public:
52 BiasBuffer();
53
54 BiasBuffer(const int max_size = 5);
55
59 virtual ~BiasBuffer();
60
65 void set_logger(ddt::DdtLogger* const in_logger);
66
76 bool LoadBiasFileInSlot(const std::string& file_name, const int slot = 0);
77
85 int LoadBiasFileInFreeSlot(const std::string& file_name);
86
96 bool StoreCPLAsBiasImageInSlot(const cpl_image* image, std::string slot_name,
97 const int slot = 0);
98
108 int StoreCPLAsBiasImageInFreeSlot(const cpl_image* const image,
109 const std::string slot_name);
110
114 void ClearAll();
115
120 void ClearSelected(const int slot);
121
128 cpl_image* get_Image(const int slot);
129
137 std::string get_SlotName(const int slot);
138
146 bool SubtractBiasImage(cpl_image* const source_image, const int slot = 0);
147
148 protected:
153
154 private:
158 void Initialize();
159
165 bool LoadFileData(const int slot);
166
172 bool LoadFileDataImage(const int slot);
173
178 void DeleteCplImage(cpl_image** const image) const;
179
183 ddt::DataFile* data_file;
184
188 std::vector<cpl_image*> bias_image;
189
193 std::vector<std::string> bias_image_name;
194
198 int max_bias_images;
199};
200
201} // namespace ddt
202
203#endif /* BIASBUFFER_HPP */
ddt::DdtLogger * logger
Definition biasBuffer.hpp:152
cpl_image * get_Image(const int slot)
Definition biasBuffer.cpp:154
bool LoadBiasFileInSlot(const std::string &file_name, const int slot=0)
Definition biasBuffer.cpp:61
virtual ~BiasBuffer()
Definition biasBuffer.cpp:34
void ClearSelected(const int slot)
Definition biasBuffer.cpp:275
BiasBuffer()
Definition biasBuffer.cpp:24
void set_logger(ddt::DdtLogger *const in_logger)
Definition biasBuffer.cpp:46
int StoreCPLAsBiasImageInFreeSlot(const cpl_image *const image, const std::string slot_name)
Definition biasBuffer.cpp:240
std::string get_SlotName(const int slot)
Definition biasBuffer.cpp:165
void ClearAll()
Definition biasBuffer.cpp:266
bool StoreCPLAsBiasImageInSlot(const cpl_image *image, std::string slot_name, const int slot=0)
Definition biasBuffer.cpp:188
int LoadBiasFileInFreeSlot(const std::string &file_name)
Definition biasBuffer.cpp:88
bool SubtractBiasImage(cpl_image *const source_image, const int slot=0)
Definition biasBuffer.cpp:176
Definition dataFile.hpp:69
Definition ddtLogger.hpp:43
Configuration Maps class, offers an interface to configuration map access classes....
Data acquisition class, offers access to data stream acquisition functions. This file is part of the ...
Data file class, offers access to FITS file functions. This file is part of the DDT Image Handling Li...
DDT EncDecMultiDim. Class to encode / decode multi-dimensional array data samples....
DDT EncDecImage2D. Class to encode / decode 2-dimensional data samples containing image data....
Class to wrap the usage of log4cplus as logging utility. This file provides a wrapper class for the u...
Image Color class, offers access to color map related functions. This file is part of the DDT Image H...
Image Handling class, offers access to coordinate conversion functions. This file is part of the DDT ...
Image error handling function declaration. This file is part of the DDT Image Handling Library and pr...
Image IO function declaration. This file is part of the DDT Image Handling Library and provides funct...
Image processing function declaration. This file is part of the DDT Image Handling Library and provid...
Image analysis and statistic function declaration. This file is part of the DDT Image Handling Librar...
Definition ddtClient.hpp:32