22 #ifndef LSST_AFW_IMAGE_MASKEDIMAGEFITSREADER_H 23 #define LSST_AFW_IMAGE_MASKEDIMAGEFITSREADER_H 30 namespace lsst {
namespace afw {
namespace image {
136 template <
typename ImagePixelT>
139 template <
typename ImagePixelT>
159 template <
typename MaskPixelT>
162 bool allowUnsafe=
false);
177 template <
typename MaskPixelT>
195 template <
typename VariancePixelT>
198 template <
typename VariancePixelT>
221 template <
typename ImagePixelT,
typename MaskPixelT=MaskPixel,
typename VariancePixelT=VariancePixel>
224 bool conformMasks=
false,
bool needAllHdus=
false,
bool allowUnsafe=
false 236 fits::Fits * _getFitsFile() {
return _imageReader._fitsFile; }
248 #endif // !LSST_AFW_IMAGE_MASKEDIMAGEFITSREADER_H A FITS reader class for Masks.
std::shared_ptr< daf::base::PropertyList > readVarianceMetadata()
Read the FITS header of one of the HDUs.
MaskedImageFitsReader(std::string const &fileName, int hdu=fits::DEFAULT_HDU)
Construct a FITS reader object.
~MaskedImageFitsReader() noexcept
lsst::geom::Box2I readBBox(ImageOrigin origin=PARENT)
Read the bounding box of the on-disk image.
std::string readVarianceDType() const
Read a string describing the pixel type of the on-disk image plane.
std::string getFileName() const
Return the name of the file this reader targets.
ndarray::Array< MaskPixelT, 2, 2 > readMaskArray(lsst::geom::Box2I const &bbox=lsst::geom::Box2I(), ImageOrigin origin=PARENT, bool allowUnsafe=false)
Read the mask plane.
Image< VariancePixelT > readVariance(lsst::geom::Box2I const &bbox=lsst::geom::Box2I(), ImageOrigin origin=PARENT, bool allowUnsafe=false)
Read the variance plane.
std::shared_ptr< daf::base::PropertyList > readMaskMetadata()
Read the FITS header of one of the HDUs.
A FITS reader class for regular Images.
MaskedImageFitsReader & operator=(MaskedImageFitsReader const &)=delete
A simple struct that combines the two arguments that must be passed to most cfitsio routines and cont...
Image< ImagePixelT > readImage(lsst::geom::Box2I const &bbox=lsst::geom::Box2I(), ImageOrigin origin=PARENT, bool allowUnsafe=false)
Read the image plane.
std::string getFileName() const
Return the name of the file this reader targets.
A base class for image defects.
Represent a 2-dimensional array of bitmask pixels.
Lifetime-management for memory that goes into FITS memory files.
std::string readImageDType() const
Read a string describing the pixel type of the on-disk image plane.
A class to manipulate images, masks, and variance as a single object.
std::shared_ptr< daf::base::PropertyList > readPrimaryMetadata()
Read the FITS header of one of the HDUs.
Mask< MaskPixelT > readMask(lsst::geom::Box2I const &bbox=lsst::geom::Box2I(), ImageOrigin origin=PARENT, bool conformMasks=false, bool allowUnsafe=false)
Read the mask plane.
ndarray::Array< VariancePixelT, 2, 2 > readVarianceArray(lsst::geom::Box2I const &bbox=lsst::geom::Box2I(), ImageOrigin origin=PARENT, bool allowUnsafe=false)
Read the variance plane.
MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT > read(lsst::geom::Box2I const &bbox=lsst::geom::Box2I(), ImageOrigin origin=PARENT, bool conformMasks=false, bool needAllHdus=false, bool allowUnsafe=false)
Read the full MaskedImage.
std::string readMaskDType() const
Read a string describing the pixel type of the on-disk image plane.
A FITS reader class for MaskedImages and their components.
A FITS reader class for Exposures and their components.
std::shared_ptr< daf::base::PropertyList > readImageMetadata()
Read the FITS header of one of the HDUs.
A class to represent a 2-dimensional array of pixels.
ndarray::Array< ImagePixelT, 2, 2 > readImageArray(lsst::geom::Box2I const &bbox=lsst::geom::Box2I(), ImageOrigin origin=PARENT, bool allowUnsafe=false)
Read the image plane.
lsst::geom::Point2I readXY0(lsst::geom::Box2I const &bbox=lsst::geom::Box2I(), ImageOrigin origin=PARENT)
Read the image origin from the on-disk image or a subimage thereof.
const int DEFAULT_HDU
Specify that the default HDU should be read.