SourceXtractorPlusPlus
0.8
Please provide a description of the project.
|
#include <iostream>
#include <memory>
#include <utility>
#include <valarray>
#include <string>
#include <algorithm>
#include <opencv2/opencv.hpp>
#include <CCfits/CCfits>
#include "ElementsKernel/Exception.h"
#include "ModelFitting/Image/OpenCvPsf.h"
#include "ModelFitting/utils.h"
Go to the source code of this file.
Functions | |
void | writeToFits (const cv::Mat &image, const std::string &filename) |
ModelFitting::OpenCvPsf | readPsf (const std::string &filename) |
std::pair< cv::Mat, double > | readImage (const std::string &filename) |
std::vector< std::pair < cv::Mat, double > > | readFrames (const std::string &filename) |
void | printLevmarInfo (std::array< double, 10 > info) |
void printLevmarInfo | ( | std::array< double, 10 > | info | ) |
std::vector<std::pair<cv::Mat, double> > readFrames | ( | const std::string & | filename | ) |
Definition at line 95 of file utils.h.
References std::copy(), and pixel_scale.
Referenced by main().
std::pair<cv::Mat, double> readImage | ( | const std::string & | filename | ) |
Reads an image from a FITS file. The header must contain the keyword SCALE with the pixelscale of the image. It returns a pair of a cv::Mat containing the data and a double with the pixel scale.
Definition at line 77 of file utils.h.
References std::copy(), std::make_pair(), and pixel_scale.
Referenced by main().
ModelFitting::OpenCvPsf readPsf | ( | const std::string & | filename | ) |
Reads a PSF from a fits file. The image must be square and have sides of odd number of pixels. The pixel scale is read by the header keyword SCALE which must be present
Definition at line 53 of file utils.h.
References std::copy(), and pixel_scale.
Referenced by main().
void writeToFits | ( | const cv::Mat & | image, |
const std::string & | filename | ||
) |
Writes an OpenCv Mat to an image FITS file (prepend the filename with '!' to override existing files)
Definition at line 40 of file utils.h.
References std::copy().
Referenced by main().