ddt 1.2.1
|
#include <biasBuffer.hpp>
Protected Attributes | |
ddt::DdtLogger * | logger |
BiasBuffer () | |
BiasBuffer (const int max_size=5) | |
virtual | ~BiasBuffer () |
void | set_logger (ddt::DdtLogger *const in_logger) |
bool | LoadBiasFileInSlot (const std::string &file_name, const int slot=0) |
int | LoadBiasFileInFreeSlot (const std::string &file_name) |
bool | StoreCPLAsBiasImageInSlot (const cpl_image *image, std::string slot_name, const int slot=0) |
int | StoreCPLAsBiasImageInFreeSlot (const cpl_image *const image, const std::string slot_name) |
void | ClearAll () |
void | ClearSelected (const int slot) |
cpl_image * | get_Image (const int slot) |
std::string | get_SlotName (const int slot) |
bool | SubtractBiasImage (cpl_image *const source_image, const int slot=0) |
Class to wrap the internal CPL image. This is created from the incoming data stream rsp. from a loaded file.
It offers access to image properties.
BiasBuffer::BiasBuffer | ( | ) |
Constructor
BiasBuffer::BiasBuffer | ( | const int | max_size = 5 | ) |
|
virtual |
Destructor
void BiasBuffer::ClearAll | ( | ) |
Clear all BIAS images
void BiasBuffer::ClearSelected | ( | const int | slot | ) |
Clear the selected BIAS image, identified by its slot number
slot | the index into the internal bias image array. |
cpl_image * BiasBuffer::get_Image | ( | const int | slot | ) |
Get the image data
slot | the index into the internal bias image array. |
std::string BiasBuffer::get_SlotName | ( | const int | slot | ) |
Get the slot name
slot | the index into the internal bias image array. |
int BiasBuffer::LoadBiasFileInFreeSlot | ( | const std::string & | file_name | ) |
Load bias file into the first free slot, if any, in the internal bias image array. This function takes a CPL file (FITS) name.
file_name | the FITS file name to load |
bool BiasBuffer::LoadBiasFileInSlot | ( | const std::string & | file_name, |
const int | slot = 0 ) |
Load bias file into a certain slot in the internal bias image array. This function takes a CPL file (FITS) name and a slot number. The default slot is the first.
file_name | the FITS file name to load |
slot | the index into the internal bias image array. This defaults to 0. |
void BiasBuffer::set_logger | ( | ddt::DdtLogger *const | in_logger | ) |
Set logger
in_logger | A DDT logger object (no transfer of ownership). |
int BiasBuffer::StoreCPLAsBiasImageInFreeSlot | ( | const cpl_image *const | image, |
const std::string | slot_name ) |
Store a CPL image into the first free slot, if any, in the internal bias image array.
image | the CPL image to store |
slot_name | the name to store for this image. If an empty string is provided, a slot name will be created internally |
bool BiasBuffer::StoreCPLAsBiasImageInSlot | ( | const cpl_image * | image, |
std::string | slot_name, | ||
const int | slot = 0 ) |
Store a CPL image into a certain slot in the internal bias image array.
image | the CPL image to store |
slot_name | the name to store for this image. If an empty string is provided, a slot name will be created internally |
slot | the index into the internal bias image array. This defaults to 0. |
bool BiasBuffer::SubtractBiasImage | ( | cpl_image *const | source_image, |
const int | slot = 0 ) |
Subtract the bias image identified by the slot number from the provided source image
source_image | the image to subtract the bias image from |
slot | the index into the internal bias image array. |
|
protected |
The logger object