RTC Toolkit
2.0.0
|
Declaration of FITS I/O helper functions. More...
#include <boost/filesystem.hpp>
#include <cassert>
#include <fitsio.h>
#include <limits>
#include <rtctk/componentFramework/exceptions.hpp>
#include <rtctk/componentFramework/logger.hpp>
#include <rtctk/componentFramework/matrixBuffer.hpp>
#include <string>
#include <type_traits>
#include <typeinfo>
#include <unistd.h>
Go to the source code of this file.
Namespaces | |
rtctk | |
rtctk::componentFramework | |
Functions | |
std::string | rtctk::componentFramework::GetCfitsioErrorMsg (int status) |
Helper function to convert a Cfitsio status code to a human readable message. More... | |
std::string | rtctk::componentFramework::CfitsioImageTypeToString (int bitpix) |
Returns a string representation of a Cfitsio image type code. More... | |
std::string | rtctk::componentFramework::CfitsioDataTypeToString (int datatype) |
Returns a string representation of a Cfitsio data type code. More... | |
template<typename T , typename A > | |
void | rtctk::componentFramework::WriteMatrixToFits (const std::string &filename, const MatrixBuffer< T, A > &matrix) |
Writes MatrixBuffer data representing a matrix as an image to a FITS file. More... | |
template<typename T , typename A > | |
void | rtctk::componentFramework::ReadMatrixFromFits (const std::string &filename, MatrixBuffer< T, A > &matrix) |
Reads a FITS file image into a MatrixBuffer object representing a matrix. More... | |
template<typename T , typename A > | |
void | rtctk::componentFramework::WriteVectorToFits (const std::string &filename, const std::vector< T, A > &vector) |
Writes std::vector data as a 1D image to a FITS file. More... | |
template<typename T , typename A > | |
void | rtctk::componentFramework::ReadVectorFromFits (const std::string &filename, std::vector< T, A > &vector) |
Reads a FITS file containing a 1D image into a std::vector object. More... | |
template<typename A > | |
void | rtctk::componentFramework::WriteMatrixToFits (const std::string &filename, const MatrixBuffer< bool, A > &matrix) |
Writes a matrix of boolean values as a FITS image with 8 bits per pixel. More... | |
template<typename A > | |
void | rtctk::componentFramework::ReadMatrixFromFits (const std::string &filename, MatrixBuffer< bool, A > &matrix) |
Reads a matrix of boolean values from a FITS image with 8 bits per pixel. More... | |
template<typename A > | |
void | rtctk::componentFramework::WriteVectorToFits (const std::string &filename, const std::vector< bool, A > &vector) |
Write a vector of boolean values to a FITS file as a 1D image of 8 bit pixels. More... | |
template<typename A > | |
void | rtctk::componentFramework::ReadVectorFromFits (const std::string &filename, std::vector< bool, A > &vector) |
Read a vector of boolean values from a FITS files containing a 1D image of 8 bit pixels. More... | |
const std::type_info & | rtctk::componentFramework::GetFitsImageType (const std::string &filename) |
Get the C++ type corresponding to a FITS image. More... | |
std::size_t | rtctk::componentFramework::GetFitsImageSize (const std::string &filename) |
Get the number of pixels in a FITS image. More... | |
Declaration of FITS I/O helper functions.