30 #ifndef LSST_AFW_IMAGE_UTILS_H
31 #define LSST_AFW_IMAGE_UTILS_H
39 #include "boost/format.hpp"
40 #include "boost/mpl/bool.hpp"
44 #include "lsst/daf/base.h"
45 #include "lsst/daf/base/Citizen.h"
46 #include "lsst/pex/exceptions.h"
64 inline std::shared_ptr<daf::base::PropertyList>
readMetadata(std::string
const& fileName,
int hdu = INT_MIN,
76 template <
typename ImageT>
78 typename ImageT::Pixel bad = 0
80 typedef typename ImageT::SinglePixel SinglePixelT;
81 return SinglePixelT(std::numeric_limits<SinglePixelT>::has_quiet_NaN
82 ? std::numeric_limits<SinglePixelT>::quiet_NaN()
ImageT::SinglePixel badPixel(typename ImageT::Pixel bad=0)
Return a value indicating a bad pixel for the given Image type.
std::shared_ptr< daf::base::PropertyList > readMetadata(std::string const &fileName, int hdu=INT_MIN, bool strip=false)
Read FITS header.
std::shared_ptr< daf::base::PropertyList > readMetadata(std::string const &fileName, int hdu=INT_MIN, bool strip=false)
Return the metadata (header entries) from a FITS file.