Program Listing for File CCD.h

Return to documentation for file (include/CCD.h)

#ifndef ECHELLESIMULATOR_CCD_H
#define ECHELLESIMULATOR_CCD_H

#include "hdf5.h"
#include <string>
#include <vector>

class CCD {
public:
    CCD(int Nx, int Ny, double pixelsize);

    ~CCD();

    void save_to_hdf(std::string filename, bool bleed = true, bool overwrite = false);

    void save_to_fits(std::string filename, bool overwrite);

    double *get_pixelsize();

    //overload + operator
//    static void do_bleed(cv::Mat &input, double limit);

    std::vector<int> data;
    bool use_gpu = false;
    int Nx, Ny;
    double pixel_size;


};


#endif //ECHELLESIMULATOR_CCD_H