LSSTApplications
19.0.0-14-gb0260a2+72efe9b372,20.0.0+7927753e06,20.0.0+8829bf0056,20.0.0+995114c5d2,20.0.0+b6f4b2abd1,20.0.0+bddc4f4cbe,20.0.0-1-g253301a+8829bf0056,20.0.0-1-g2b7511a+0d71a2d77f,20.0.0-1-g5b95a8c+7461dd0434,20.0.0-12-g321c96ea+23efe4bbff,20.0.0-16-gfab17e72e+fdf35455f6,20.0.0-2-g0070d88+ba3ffc8f0b,20.0.0-2-g4dae9ad+ee58a624b3,20.0.0-2-g61b8584+5d3db074ba,20.0.0-2-gb780d76+d529cf1a41,20.0.0-2-ged6426c+226a441f5f,20.0.0-2-gf072044+8829bf0056,20.0.0-2-gf1f7952+ee58a624b3,20.0.0-20-geae50cf+e37fec0aee,20.0.0-25-g3dcad98+544a109665,20.0.0-25-g5eafb0f+ee58a624b3,20.0.0-27-g64178ef+f1f297b00a,20.0.0-3-g4cc78c6+e0676b0dc8,20.0.0-3-g8f21e14+4fd2c12c9a,20.0.0-3-gbd60e8c+187b78b4b8,20.0.0-3-gbecbe05+48431fa087,20.0.0-38-ge4adf513+a12e1f8e37,20.0.0-4-g97dc21a+544a109665,20.0.0-4-gb4befbc+087873070b,20.0.0-4-gf910f65+5d3db074ba,20.0.0-5-gdfe0fee+199202a608,20.0.0-5-gfbfe500+d529cf1a41,20.0.0-6-g64f541c+d529cf1a41,20.0.0-6-g9a5b7a1+a1cd37312e,20.0.0-68-ga3f3dda+5fca18c6a4,20.0.0-9-g4aef684+e18322736b,w.2020.45
LSSTDataManagementBasePackage
|
Go to the documentation of this file.
25 #ifndef LSST_AFW_IMAGE_EXPOSURE_H
26 #define LSST_AFW_IMAGE_EXPOSURE_H
84 explicit Exposure(
unsigned int width,
unsigned int height,
133 ImageOrigin origin =
PARENT,
bool conformMasks =
false,
bool allowUnsafe =
false);
147 ImageOrigin origin =
PARENT,
bool conformMasks =
false,
bool allowUnsafe =
false);
161 ImageOrigin origin =
PARENT,
bool conformMasks =
false,
bool allowUnsafe =
false);
182 bool const deep =
false);
188 template <
typename OtherPixelT>
195 "Exposure's converting copy constructor must make a deep copy");
236 return _info->getDetector();
274 return _maskedImage.
getBBox(origin);
310 bool hasPsf()
const {
return _info->hasPsf(); }
313 bool hasWcs()
const {
return _info->hasWcs(); }
441 template <
typename ImagePixelT,
typename MaskPixelT,
typename VariancePixelT>
454 #endif // LSST_AFW_IMAGE_EXPOSURE_H
Backwards-compatibility support for depersisting the old Calib (FluxMag0/FluxMag0Err) objects.
std::shared_ptr< lsst::afw::detection::Psf const > getPsf() const
Return the Exposure's Psf object.
int getHeight() const
Return the Exposure's height.
void setPhotoCalib(std::shared_ptr< PhotoCalib const > photoCalib)
Set the Exposure's PhotoCalib object.
void setXY0(lsst::geom::Point2I const &origin)
Set the Exposure's origin (including correcting the Wcs)
std::shared_ptr< PhotoCalib const > getPhotoCalib() const
Return the Exposure's PhotoCalib object.
static Exposure readFits(fits::MemFileManager &manager)
Read an Exposure from a FITS RAM file.
A class to contain the data, WCS, and other information needed to describe an image of the sky.
Filter getFilter() const
Return the Exposure's filter.
table::Key< table::Array< std::uint8_t > > wcs
Exposure operator[](lsst::geom::Box2I const &bbox) const
Return a subimage corresponding to the given box (interpreted as PARENT coordinates).
A simple struct that combines the two arguments that must be passed to most cfitsio routines and cont...
Holds an integer identifier for an LSST filter.
lsst::geom::Extent2I getDimensions() const
Return the Exposure's size.
std::shared_ptr< Exposure< ImagePixelT, MaskPixelT, VariancePixelT > > makeExposure(MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT > &mimage, std::shared_ptr< geom::SkyWcs const > wcs=std::shared_ptr< geom::SkyWcs const >())
A function to return an Exposure of the correct type (cf.
int getY0() const
Return the Exposure's row-origin.
bool hasPsf() const
Does this Exposure have a Psf?
lsst::geom::Box2I getBBox(ImageOrigin const origin=PARENT) const
int getWidth() const
Return the number of columns in the image.
Lifetime-management for memory that goes into FITS memory files.
std::shared_ptr< ExposureInfo > getInfo()
Get the ExposureInfo that aggregates all the non-image components. Never null.
int getHeight() const
Return the number of rows in the image.
MaskedImageT getMaskedImage()
Return the MaskedImage.
Options for writing an image to FITS.
void writeFits(std::string const &fileName) const
Write an Exposure to a regular multi-extension FITS file.
std::shared_ptr< RecordT > src
MaskedImageT getMaskedImage() const
Return the MaskedImage.
int getY0() const
Return the image's row-origin.
lsst::geom::Point2I getXY0() const
Return the image's origin.
A class to manipulate images, masks, and variance as a single object.
virtual ~Exposure()
Destructor.
A collection of all the things that make an Exposure different from a MaskedImage.
std::shared_ptr< lsst::daf::base::PropertySet > getMetadata() const
Return flexible metadata.
float VariancePixel
default type for MaskedImage variance images
lsst::geom::Box2I getBBox(ImageOrigin const origin=PARENT) const
std::shared_ptr< ExposureInfo const > getInfo() const
Get the ExposureInfo that aggregates all the non-image components. Never null.
Exposure subset(lsst::geom::Box2I const &bbox, ImageOrigin origin=PARENT) const
Return a subimage corresponding to the given box.
int getX0() const
Return the image's column-origin.
afw::table::PointKey< int > dimensions
std::int32_t MaskPixel
default type for Masks and MaskedImage Masks
Exposure & operator=(Exposure const &)
Exposure(Exposure< OtherPixelT, MaskT, VarianceT > const &rhs, const bool deep)
generalised copy constructor; defined here in the header so that the compiler can instantiate N(N-1)/...
int getWidth() const
Return the Exposure's width.
A base class for image defects.
#define LSST_EXCEPT(type,...)
Create an exception with a given type.
Exposure getCutout(lsst::geom::SpherePoint const ¢er, lsst::geom::Extent2I const &size) const
Return an Exposure that is a small cutout of the original.
static Exposure readFits(std::string const &filename)
Read an Exposure from a regular FITS file.
Exposure & operator=(Exposure &&)
bool hasWcs() const
Does this Exposure have a Wcs?
Reports invalid arguments.
MaskedImage< ImageT, MaskT, VarianceT > MaskedImageT
table::Key< int > detector
void setMetadata(std::shared_ptr< lsst::daf::base::PropertySet > metadata)
void setPsf(std::shared_ptr< lsst::afw::detection::Psf const > psf)
Set the Exposure's Psf.
lsst::geom::Point2I getXY0() const
Return the Exposure's origin.
An integer coordinate rectangle.
void setMaskedImage(MaskedImageT &maskedImage)
Set the MaskedImage of the Exposure.
Point in an unspecified spherical coordinate system.
void setInfo(std::shared_ptr< ExposureInfo > exposureInfo)
Set the ExposureInfo that aggregates all the non-image components.
std::shared_ptr< lsst::afw::cameraGeom::Detector const > getDetector() const
Return the Exposure's Detector information.
std::shared_ptr< geom::SkyWcs const > getWcs() const
Exposure(unsigned int width, unsigned int height, std::shared_ptr< geom::SkyWcs const > wcs=std::shared_ptr< geom::SkyWcs const >())
Construct an Exposure with a blank MaskedImage of specified size (default 0x0) and a SkyWcs (which ma...
void setDetector(std::shared_ptr< lsst::afw::cameraGeom::Detector const > detector)
Set the Exposure's Detector information.
void setWcs(std::shared_ptr< geom::SkyWcs > wcs)
void setFilter(Filter const &filter)
Set the Exposure's filter.
lsst::geom::Extent2I getDimensions() const
int getX0() const
Return the Exposure's column-origin.