class representing a CCD detector More...

#include <CCD.h>

Public Member Functions

 CCD (int Nx, int Ny, int oversampling, int data_type)
 
 ~CCD ()
 
void save_to_file (std::string filename, bool downsample=true, bool bleed=true, bool overwrite=false)
 
cv::Mat get_image (bool downsample=true, bool bleed=true)
 
CCD operator+ (const CCD &ccd)
 

Static Public Member Functions

static void do_bleed (cv::Mat &input, double limit)
 

Public Attributes

cv::Mat data
 
bool use_gpu = false
 

Private Attributes

int Nx
 
int Ny
 
int oversampling
 

Detailed Description

class representing a CCD detector

Constructor & Destructor Documentation

CCD::CCD ( int  Nx,
int  Ny,
int  oversampling,
int  data_type 
)

Constructor

Parameters
Nxnumber of pixels in X direction
Nynumber of pixels in Y direction
oversamplingspecifies the oversampling factor that will be used to downsample the image to its physical size
data_typedata type, should be same as slit.image. Possible values see opencv datatypes (e.g. CV_32F, CV_64F,...)
Returns
CCD
CCD::~CCD ( )

Member Function Documentation

void CCD::do_bleed ( cv::Mat &  input,
double  limit 
)
static
cv::Mat CCD::get_image ( bool  downsample = true,
bool  bleed = true 
)
CCD CCD::operator+ ( const CCD ccd)
inline
void CCD::save_to_file ( std::string  filename,
bool  downsample = true,
bool  bleed = true,
bool  overwrite = false 
)

Member Data Documentation

cv::Mat CCD::data
int CCD::Nx
private
int CCD::Ny
private
int CCD::oversampling
private
bool CCD::use_gpu = false

The documentation for this class was generated from the following files:
  • /home/stuermer/Repos/cpp/EchelleSimulator/include/CCD.h
  • /home/stuermer/Repos/cpp/EchelleSimulator/src/CCD.cpp