LSST Applications
21.0.0+04719a4bac,21.0.0-1-ga51b5d4+f5e6047307,21.0.0-11-g2b59f77+a9c1acf22d,21.0.0-11-ga42c5b2+86977b0b17,21.0.0-12-gf4ce030+76814010d2,21.0.0-13-g1721dae+760e7a6536,21.0.0-13-g3a573fe+768d78a30a,21.0.0-15-g5a7caf0+f21cbc5713,21.0.0-16-g0fb55c1+b60e2d390c,21.0.0-19-g4cded4ca+71a93a33c0,21.0.0-2-g103fe59+bb20972958,21.0.0-2-g45278ab+04719a4bac,21.0.0-2-g5242d73+3ad5d60fb1,21.0.0-2-g7f82c8f+8babb168e8,21.0.0-2-g8f08a60+06509c8b61,21.0.0-2-g8faa9b5+616205b9df,21.0.0-2-ga326454+8babb168e8,21.0.0-2-gde069b7+5e4aea9c2f,21.0.0-2-gecfae73+1d3a86e577,21.0.0-2-gfc62afb+3ad5d60fb1,21.0.0-25-g1d57be3cd+e73869a214,21.0.0-3-g357aad2+ed88757d29,21.0.0-3-g4a4ce7f+3ad5d60fb1,21.0.0-3-g4be5c26+3ad5d60fb1,21.0.0-3-g65f322c+e0b24896a3,21.0.0-3-g7d9da8d+616205b9df,21.0.0-3-ge02ed75+a9c1acf22d,21.0.0-4-g591bb35+a9c1acf22d,21.0.0-4-g65b4814+b60e2d390c,21.0.0-4-gccdca77+0de219a2bc,21.0.0-4-ge8a399c+6c55c39e83,21.0.0-5-gd00fb1e+05fce91b99,21.0.0-6-gc675373+3ad5d60fb1,21.0.0-64-g1122c245+4fb2b8f86e,21.0.0-7-g04766d7+cd19d05db2,21.0.0-7-gdf92d54+04719a4bac,21.0.0-8-g5674e7b+d1bd76f71f,master-gac4afde19b+a9c1acf22d,w.2021.13
LSST Data Management Base Package
|
Backwards-compatibility support for depersisting the old Calib (FluxMag0/FluxMag0Err) objects. More...
Classes | |
class | imageIterator |
An ImageBase iterator. More... | |
class | imageLocator |
An ImageBase locator. More... | |
class | ApCorrMap |
A thin wrapper around std::map to allow aperture corrections to be attached to Exposures. More... | |
class | CoaddInputs |
A simple Persistable struct containing ExposureCatalogs that record the inputs to a coadd. More... | |
class | Color |
Describe the colour of a source. More... | |
class | DefectBase |
Encapsulate information about a bad portion of a detector. More... | |
class | Exposure |
A class to contain the data, WCS, and other information needed to describe an image of the sky. More... | |
class | ExposureFitsReader |
A FITS reader class for Exposures and their components. More... | |
class | ExposureInfo |
A collection of all the things that make an Exposure different from a MaskedImage. More... | |
class | FilterLabel |
A group of labels for a filter in an exposure or coadd. More... | |
class | Image |
A class to represent a 2-dimensional array of pixels. More... | |
class | DecoratedImage |
A container for an Image and its associated metadata. More... | |
struct | pixelOp0 |
A functor class equivalent to std::function<ValT ()>, but with a virtual operator() More... | |
struct | pixelOp1 |
A functor class equivalent to std::function<ValT (ValT)>, but with a virtual operator() More... | |
struct | pixelOp1XY |
A functor class equivalent to std::function<ValT (int, int, ValT)>, but with a virtual operator() More... | |
struct | pixelOp2 |
A functor class equivalent to std::function<LhsT (LhsT, RhsT)>, but with a virtual operator() More... | |
struct | pixelOp2XY |
A functor class equivalent to std::function<LhsT (int, int, LhsT, RhsT)>, but with a virtual operator() More... | |
class | CheckIndices |
A class used to request that array accesses be checked. More... | |
struct | Reference |
metafunction to extract reference type from PixelT More... | |
struct | ConstReference |
metafunction to extract const reference type from PixelT More... | |
class | ImageBase |
The base class for all image classed (Image, Mask, MaskedImage, ...) More... | |
class | ImageBaseFitsReader |
Base class for image FITS readers. More... | |
class | ImageFitsReader |
A FITS reader class for regular Images. More... | |
class | ImagePca |
class | ImageSlice |
A class to specify a slice of an image. More... | |
class | Mask |
Represent a 2-dimensional array of bitmask pixels. More... | |
class | MaskedImage |
A class to manipulate images, masks, and variance as a single object. More... | |
struct | GetImage |
class | MaskedImageFitsReader |
A FITS reader class for MaskedImages and their components. More... | |
class | MaskFitsReader |
A FITS reader class for Masks. More... | |
struct | Measurement |
A value and its error. More... | |
class | PhotoCalib |
The photometric calibration of an exposure. More... | |
class | TransmissionCurve |
A spatially-varying transmission curve as a function of wavelength. More... | |
class | VisitInfo |
Information about a single exposure of an imaging camera. More... | |
Typedefs | |
typedef std::int32_t | MaskPixel |
default type for Masks and MaskedImage Masks More... | |
typedef float | VariancePixel |
default type for MaskedImage variance images More... | |
using | PyCoaddInputs = py::class_< CoaddInputs, std::shared_ptr< CoaddInputs >, typehandling::Storable > |
using | PyColor = py::class_< Color, std::shared_ptr< Color > > |
using | PyTransmissionCurve = py::class_< TransmissionCurve, std::shared_ptr< TransmissionCurve >, typehandling::Storable > |
Enumerations | |
enum | ImageOrigin { PARENT , LOCAL } |
enum | xOrY { X , Y } |
enum class | RotType { UNKNOWN , SKY , HORIZON , MOUNT } |
Type of rotation. More... | |
Functions | |
double | abMagFromFlux (double flux) |
Compute AB magnitude from flux in Janskys. More... | |
double | abMagErrFromFluxErr (double fluxErr, double flux) |
Compute AB magnitude error from flux and flux error in Janskys. More... | |
double | fluxFromABMag (double mag) noexcept |
Compute flux in Janskys from AB magnitude. More... | |
double | fluxErrFromABMagErr (double magErr, double mag) noexcept |
Compute flux error in Janskys from AB magnitude error and AB magnitude. More... | |
template<typename T > | |
ndarray::Array< T, 1 > | abMagFromFlux (ndarray::Array< T const, 1 > const &flux) |
Compute AB magnitude from flux in Janskys. More... | |
template<typename T > | |
ndarray::Array< T, 1 > | abMagErrFromFluxErr (ndarray::Array< T const, 1 > const &fluxErr, ndarray::Array< T const, 1 > const &flux) |
Compute AB magnitude error from flux and flux error in Janskys. More... | |
template<typename T > | |
ndarray::Array< T, 1 > | fluxFromABMag (ndarray::Array< T const, 1 > const &mag) |
Compute flux in Janskys from AB magnitude. More... | |
template<typename T > | |
ndarray::Array< T, 1 > | fluxErrFromABMagErr (ndarray::Array< T const, 1 > const &magErr, ndarray::Array< T const, 1 > const &mag) |
Compute flux error in Janskys from AB magnitude error and AB magnitude. More... | |
template<typename ImagePixelT , typename MaskPixelT , typename VariancePixelT > | |
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. More... | |
FilterProperty (FilterProperty const &)=default | |
FilterProperty (FilterProperty &&) noexcept=default | |
FilterProperty & | operator= (FilterProperty const &)=default |
FilterProperty & | operator= (FilterProperty &&) noexcept=default |
~FilterProperty () noexcept=default | |
std::string const & | getName () const noexcept |
Return a filter's name. More... | |
double | getLambdaEff () const noexcept |
Return the filter's effective wavelength (nm) More... | |
double | getLambdaMin () const noexcept |
Return the filter's minimum wavelength (nm) where the transmission is above 1% of the maximum. More... | |
double | getLambdaMax () const noexcept |
Return the filter's maximum wavelength (nm) where the transmission is above 1% of the maximum. More... | |
bool | operator== (FilterProperty const &rhs) const noexcept |
Return true iff two FilterProperties are identical. More... | |
bool | operator!= (FilterProperty const &rhs) const noexcept |
Return true iff rhs != this. More... | |
std::size_t | hash_value () const noexcept |
Return a hash of this object. More... | |
std::string | getPersistenceName () const override |
std::string | getPythonModule () const override |
void | write (OutputArchiveHandle &handle) const override |
std::string | getDatabaseFilterLabel (std::string const &filterLabel) |
Remap special characters, etc. More... | |
template<typename LhsPixelT , typename RhsPixelT > | |
Image< LhsPixelT > & | operator+= (Image< LhsPixelT > &lhs, Image< RhsPixelT > const &rhs) |
Add lhs to Image rhs (i.e. pixel-by-pixel addition) where types are different. More... | |
template<typename LhsPixelT , typename RhsPixelT > | |
Image< LhsPixelT > & | operator-= (Image< LhsPixelT > &lhs, Image< RhsPixelT > const &rhs) |
Subtract lhs from Image rhs (i.e. pixel-by-pixel subtraction) where types are different. More... | |
template<typename LhsPixelT , typename RhsPixelT > | |
Image< LhsPixelT > & | operator*= (Image< LhsPixelT > &lhs, Image< RhsPixelT > const &rhs) |
Multiply lhs by Image rhs (i.e. pixel-by-pixel multiplication) where types are different. More... | |
template<typename LhsPixelT , typename RhsPixelT > | |
Image< LhsPixelT > & | operator/= (Image< LhsPixelT > &lhs, Image< RhsPixelT > const &rhs) |
Divide lhs by Image rhs (i.e. pixel-by-pixel division) where types are different. More... | |
template<typename PixelT > | |
void | swap (Image< PixelT > &a, Image< PixelT > &b) |
template<typename PixelT > | |
void | swap (DecoratedImage< PixelT > &a, DecoratedImage< PixelT > &b) |
lsst::geom::Box2I | bboxFromMetadata (daf::base::PropertySet &metadata) |
Determine the image bounding box from its metadata (FITS header) More... | |
template<typename T1 , typename T2 > | |
bool | imagesOverlap (ImageBase< T1 > const &image1, ImageBase< T2 > const &image2) |
Return true if the pixels for two images or masks overlap in memory. More... | |
template<typename LhsT > | |
void | for_each_pixel (Image< LhsT > &lhs, pixelOp0< LhsT > const &func) |
Set each pixel in an Image<LhsT> to func() More... | |
template<typename LhsT > | |
void | for_each_pixel (Image< LhsT > &lhs, pixelOp1< LhsT > const &func) |
Set each pixel in an Image<LhsT> to func(lhs) More... | |
template<typename LhsT > | |
void | for_each_pixel (Image< LhsT > &lhs, pixelOp1XY< LhsT > const &func) |
Set each pixel in an Image<LhsT> to func(x, y, lhs) More... | |
template<typename LhsT , typename RhsT > | |
void | for_each_pixel (Image< LhsT > &lhs, Image< RhsT > const &rhs, pixelOp1< RhsT > const &func) |
Set each pixel in an Image<LhsT> to func(rhs), getting the rhs from an Image<RhsT> More... | |
template<typename LhsT , typename RhsT > | |
void | for_each_pixel (Image< LhsT > &lhs, Image< RhsT > const &rhs, pixelOp2< LhsT, RhsT > const &func) |
Set each pixel in an Image<LhsT> to func(lhs, rhs), getting the rhs from an Image<RhsT> More... | |
template<typename LhsT , typename RhsT > | |
void | for_each_pixel (Image< LhsT > &lhs, Image< RhsT > const &rhs, pixelOp2XY< LhsT, RhsT > const &func) |
Set each pixel in an Image<LhsT> to func(x, y, lhs, rhs), getting the rhs from an Image<RhsT> More... | |
template<typename PixelT > | |
void | swap (ImageBase< PixelT > &a, ImageBase< PixelT > &b) |
template<typename Image1T , typename Image2T > | |
double | innerProduct (Image1T const &lhs, Image2T const &rhs, int const border=0) |
Calculate the inner product of two images. More... | |
template<typename PixelT > | |
std::shared_ptr< Image< PixelT > > | operator+ (Image< PixelT > const &img, ImageSlice< PixelT > const &slc) |
Overload operator+() More... | |
template<typename PixelT > | |
std::shared_ptr< Image< PixelT > > | operator+ (ImageSlice< PixelT > const &slc, Image< PixelT > const &img) |
Overload operator+() More... | |
template<typename PixelT > | |
void | operator+= (Image< PixelT > &img, ImageSlice< PixelT > const &slc) |
Overload operator+=() More... | |
template<typename PixelT > | |
std::shared_ptr< Image< PixelT > > | operator- (Image< PixelT > const &img, ImageSlice< PixelT > const &slc) |
Overload operator-() More... | |
template<typename PixelT > | |
void | operator-= (Image< PixelT > &img, ImageSlice< PixelT > const &slc) |
Overload operator-=() More... | |
template<typename PixelT > | |
std::shared_ptr< Image< PixelT > > | operator* (Image< PixelT > const &img, ImageSlice< PixelT > const &slc) |
Overload operator*() More... | |
template<typename PixelT > | |
std::shared_ptr< Image< PixelT > > | operator* (ImageSlice< PixelT > const &slc, Image< PixelT > const &img) |
Overload operator*() More... | |
template<typename PixelT > | |
void | operator*= (Image< PixelT > &img, ImageSlice< PixelT > const &slc) |
Overload operator*=() More... | |
template<typename PixelT > | |
std::shared_ptr< Image< PixelT > > | operator/ (Image< PixelT > const &img, ImageSlice< PixelT > const &slc) |
Overload operator/() More... | |
template<typename PixelT > | |
void | operator/= (Image< PixelT > &img, ImageSlice< PixelT > const &slc) |
Overload operator/=() More... | |
double | indexToPosition (double ind) |
Convert image index to image position. More... | |
int | positionToIndex (double pos) |
Convert image position to nearest integer index. More... | |
int | positionToIndex (double &residual, double pos) |
Convert image position to index (nearest integer and fractional parts) More... | |
std::pair< int, double > | positionToIndex (double const pos, bool) |
Convert image position to index (nearest integer and fractional parts) More... | |
template<typename PixelT > | |
void | swap (Mask< PixelT > &a, Mask< PixelT > &b) |
template<typename ImagePixelT , typename MaskPixelT , typename VariancePixelT > | |
MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT > * | makeMaskedImage (typename std::shared_ptr< Image< ImagePixelT >> image, typename std::shared_ptr< Mask< MaskPixelT >> mask=Mask< MaskPixelT >(), typename std::shared_ptr< Image< VariancePixelT >> variance=Image< VariancePixelT >()) |
A function to return a MaskedImage of the correct type (cf. More... | |
template<typename ImagePixelT1 , typename ImagePixelT2 > | |
bool | imagesOverlap (MaskedImage< ImagePixelT1, MaskPixel, VariancePixel > const &image1, MaskedImage< ImagePixelT2, MaskPixel, VariancePixel > const &image2) |
Return true if the pixels for two masked images (image, variance or mask plane) overlap in memory. More... | |
std::ostream & | operator<< (std::ostream &os, Measurement const &measurement) |
void | assertNonNegative (double value, std::string const &name) |
Raise lsst::pex::exceptions::InvalidParameterError if value is not >=0. More... | |
std::shared_ptr< PhotoCalib > | makePhotoCalibFromMetadata (daf::base::PropertySet &metadata, bool strip=false) |
Construct a PhotoCalib from FITS FLUXMAG0/FLUXMAG0ERR keywords. More... | |
std::shared_ptr< PhotoCalib > | makePhotoCalibFromCalibZeroPoint (double instFluxMag0, double instFluxMag0Err) |
Construct a PhotoCalib from the deprecated Calib -style instFluxMag0/instFluxMag0Err values. More... | |
template<typename ImageT > | |
ImageT::SinglePixel | badPixel (typename ImageT::Pixel bad=0) |
Return a value indicating a bad pixel for the given Image type. More... | |
std::ostream & | operator<< (std::ostream &os, VisitInfo const &visitInfo) |
void | wrapCalib (lsst::utils::python::WrapperCollection &wrappers) |
void | wrapCoaddInputs (lsst::utils::python::WrapperCollection &wrappers) |
void | wrapColor (lsst::utils::python::WrapperCollection &wrappers) |
void | wrapDefect (lsst::utils::python::WrapperCollection &wrappers) |
void | wrapExposureInfo (lsst::utils::python::WrapperCollection &wrappers) |
void | wrapFilter (lsst::utils::python::WrapperCollection &wrappers) |
void | wrapFilterLabel (lsst::utils::python::WrapperCollection &wrappers) |
void | wrapExposure (lsst::utils::python::WrapperCollection &) |
void | wrapImagePca (lsst::utils::python::WrapperCollection &) |
void | wrapImageUtils (lsst::utils::python::WrapperCollection &) |
void | wrapPhotoCalib (lsst::utils::python::WrapperCollection &) |
void | wrapReaders (lsst::utils::python::WrapperCollection &) |
void | wrapTransmissionCurve (lsst::utils::python::WrapperCollection &) |
void | wrapVisitInfo (lsst::utils::python::WrapperCollection &) |
PYBIND11_MODULE (_imageLib, mod) | |
void | declareVisitInfo (lsst::utils::python::WrapperCollection &wrappers) |
void | declareRotType (lsst::utils::python::WrapperCollection &wrappers) |
PYBIND11_MODULE (_exposure, mod) | |
void | wrapImage (lsst::utils::python::WrapperCollection &wrappers) |
void | wrapImageSlice (lsst::utils::python::WrapperCollection &) |
PYBIND11_MODULE (_maskedImage, mod) | |
template ndarray::Array< float, 1 > | abMagFromFlux (ndarray::Array< float const, 1 > const &flux) |
template ndarray::Array< float, 1 > | abMagErrFromFluxErr (ndarray::Array< float const, 1 > const &fluxErr, ndarray::Array< float const, 1 > const &flux) |
template ndarray::Array< float, 1 > | fluxFromABMag (ndarray::Array< float const, 1 > const &mag) |
template ndarray::Array< float, 1 > | fluxErrFromABMagErr (ndarray::Array< float const, 1 > const &magErr, ndarray::Array< float const, 1 > const &mag) |
template ndarray::Array< double, 1 > | abMagFromFlux (ndarray::Array< double const, 1 > const &flux) |
template ndarray::Array< double, 1 > | abMagErrFromFluxErr (ndarray::Array< double const, 1 > const &fluxErr, ndarray::Array< double const, 1 > const &flux) |
template ndarray::Array< double, 1 > | fluxFromABMag (ndarray::Array< double const, 1 > const &mag) |
template ndarray::Array< double, 1 > | fluxErrFromABMagErr (ndarray::Array< double const, 1 > const &magErr, ndarray::Array< double const, 1 > const &mag) |
std::shared_ptr< FilterLabel > | makeFilterLabelDirect (std::string const &name) |
Convert an old-style filter name to a FilterLabel without external information. More... | |
std::shared_ptr< FilterLabel > | makeFilterLabel (Filter const &filter) |
Convert an old-style Filter to a FilterLabel. More... | |
std::shared_ptr< FilterLabel > | makeFilterLabel (std::string const &name) |
Convert an old-style single Filter name to a FilterLabel, using available information. More... | |
Filter | makeFilter (FilterLabel const &label) |
Convert a FilterLabel back to an old-style Filter. More... | |
template bool | imagesOverlap< std::uint16_t, std::uint16_t > (MaskedImage< std::uint16_t > const &, MaskedImage< std::uint16_t > const &) |
template bool | imagesOverlap< std::uint16_t, int > (MaskedImage< std::uint16_t > const &, MaskedImage< int > const &) |
template bool | imagesOverlap< std::uint16_t, float > (MaskedImage< std::uint16_t > const &, MaskedImage< float > const &) |
template bool | imagesOverlap< std::uint16_t, double > (MaskedImage< std::uint16_t > const &, MaskedImage< double > const &) |
template bool | imagesOverlap< std::uint16_t, std::uint64_t > (MaskedImage< std::uint16_t > const &, MaskedImage< std::uint64_t > const &) |
template bool | imagesOverlap< int, std::uint16_t > (MaskedImage< int > const &, MaskedImage< std::uint16_t > const &) |
template bool | imagesOverlap< int, int > (MaskedImage< int > const &, MaskedImage< int > const &) |
template bool | imagesOverlap< int, float > (MaskedImage< int > const &, MaskedImage< float > const &) |
template bool | imagesOverlap< int, double > (MaskedImage< int > const &, MaskedImage< double > const &) |
template bool | imagesOverlap< int, std::uint64_t > (MaskedImage< int > const &, MaskedImage< std::uint64_t > const &) |
template bool | imagesOverlap< float, std::uint16_t > (MaskedImage< float > const &, MaskedImage< std::uint16_t > const &) |
template bool | imagesOverlap< float, int > (MaskedImage< float > const &, MaskedImage< int > const &) |
template bool | imagesOverlap< float, float > (MaskedImage< float > const &, MaskedImage< float > const &) |
template bool | imagesOverlap< float, double > (MaskedImage< float > const &, MaskedImage< double > const &) |
template bool | imagesOverlap< float, std::uint64_t > (MaskedImage< float > const &, MaskedImage< std::uint64_t > const &) |
template bool | imagesOverlap< double, std::uint16_t > (MaskedImage< double > const &, MaskedImage< std::uint16_t > const &) |
template bool | imagesOverlap< double, int > (MaskedImage< double > const &, MaskedImage< int > const &) |
template bool | imagesOverlap< double, float > (MaskedImage< double > const &, MaskedImage< float > const &) |
template bool | imagesOverlap< double, double > (MaskedImage< double > const &, MaskedImage< double > const &) |
template bool | imagesOverlap< double, std::uint64_t > (MaskedImage< double > const &, MaskedImage< std::uint64_t > const &) |
template bool | imagesOverlap< std::uint64_t, std::uint16_t > (MaskedImage< std::uint64_t > const &, MaskedImage< std::uint16_t > const &) |
template bool | imagesOverlap< std::uint64_t, int > (MaskedImage< std::uint64_t > const &, MaskedImage< int > const &) |
template bool | imagesOverlap< std::uint64_t, float > (MaskedImage< std::uint64_t > const &, MaskedImage< float > const &) |
template bool | imagesOverlap< std::uint64_t, double > (MaskedImage< std::uint64_t > const &, MaskedImage< double > const &) |
template bool | imagesOverlap< std::uint64_t, std::uint64_t > (MaskedImage< std::uint64_t > const &, MaskedImage< std::uint64_t > const &) |
std::ostream & | operator<< (std::ostream &os, PhotoCalib const &photoCalib) |
Variables | |
class[[deprecated("Removed with no replacement (but see lsst::afw::image::TransmissionCurve). Will be " "removed after v22.")]] FilterProperty | final |
Describe the properties of a Filter (e.g. More... | |
const double | PixelZeroPos = 0.0 |
position of center of pixel 0 More... | |
Backwards-compatibility support for depersisting the old Calib (FluxMag0/FluxMag0Err) objects.
default type for Masks and MaskedImage Masks
Definition at line 34 of file LsstImageTypes.h.
using lsst::afw::image::PyCoaddInputs = typedef py::class_<CoaddInputs, std::shared_ptr<CoaddInputs>, typehandling::Storable> |
Definition at line 40 of file _coaddInputs.cc.
using lsst::afw::image::PyColor = typedef py::class_<Color, std::shared_ptr<Color> > |
using lsst::afw::image::PyTransmissionCurve = typedef py::class_<TransmissionCurve, std::shared_ptr<TransmissionCurve>, typehandling::Storable> |
Definition at line 43 of file _transmissionCurve.cc.
typedef float lsst::afw::image::VariancePixel |
default type for MaskedImage variance images
Definition at line 35 of file LsstImageTypes.h.
|
strong |
Type of rotation.
Definition at line 45 of file VisitInfo.h.
|
defaultnoexcept |
|
inline |
template ndarray::Array< double , 1> lsst::afw::image::abMagErrFromFluxErr | ( | ndarray::Array< double const, 1 > const & | fluxErr, |
ndarray::Array< double const, 1 > const & | flux | ||
) |
template ndarray::Array< float , 1> lsst::afw::image::abMagErrFromFluxErr | ( | ndarray::Array< float const, 1 > const & | fluxErr, |
ndarray::Array< float const, 1 > const & | flux | ||
) |
ndarray::Array< T, 1 > lsst::afw::image::abMagErrFromFluxErr | ( | ndarray::Array< T const, 1 > const & | fluxErr, |
ndarray::Array< T const, 1 > const & | flux | ||
) |
Compute AB magnitude error from flux and flux error in Janskys.
Definition at line 52 of file Calib.cc.
|
inline |
template ndarray::Array< double , 1> lsst::afw::image::abMagFromFlux | ( | ndarray::Array< double const, 1 > const & | flux | ) |
template ndarray::Array< float , 1> lsst::afw::image::abMagFromFlux | ( | ndarray::Array< float const, 1 > const & | flux | ) |
ndarray::Array< T, 1 > lsst::afw::image::abMagFromFlux | ( | ndarray::Array< T const, 1 > const & | flux | ) |
|
inline |
Raise lsst::pex::exceptions::InvalidParameterError if value is not >=0.
Used for checking the calibration mean/error in the constructor.
value | Value that should be positive. |
name | Text to prepend to error message. |
lsst::pex::exceptions::InvalidParameterError | if value < 0 |
Definition at line 69 of file PhotoCalib.h.
ImageT::SinglePixel badPixel | ( | typename ImageT::Pixel | bad = 0 | ) |
lsst::geom::Box2I lsst::afw::image::bboxFromMetadata | ( | daf::base::PropertySet & | metadata | ) |
Determine the image bounding box from its metadata (FITS header)
Note that this modifies the metadata, stripping the WCS headers that provide the xy0.
Definition at line 694 of file Image.cc.
void lsst::afw::image::declareRotType | ( | lsst::utils::python::WrapperCollection & | wrappers | ) |
Definition at line 112 of file _visitInfo.cc.
void lsst::afw::image::declareVisitInfo | ( | lsst::utils::python::WrapperCollection & | wrappers | ) |
Definition at line 57 of file _visitInfo.cc.
|
defaultnoexcept |
|
default |
|
inlinenoexcept |
Compute flux error in Janskys from AB magnitude error and AB magnitude.
Definition at line 60 of file Calib.h.
template ndarray::Array< double , 1> lsst::afw::image::fluxErrFromABMagErr | ( | ndarray::Array< double const, 1 > const & | magErr, |
ndarray::Array< double const, 1 > const & | mag | ||
) |
template ndarray::Array< float , 1> lsst::afw::image::fluxErrFromABMagErr | ( | ndarray::Array< float const, 1 > const & | magErr, |
ndarray::Array< float const, 1 > const & | mag | ||
) |
ndarray::Array< T, 1 > lsst::afw::image::fluxErrFromABMagErr | ( | ndarray::Array< T const, 1 > const & | magErr, |
ndarray::Array< T const, 1 > const & | mag | ||
) |
|
inlinenoexcept |
template ndarray::Array< double , 1> lsst::afw::image::fluxFromABMag | ( | ndarray::Array< double const, 1 > const & | mag | ) |
template ndarray::Array< float , 1> lsst::afw::image::fluxFromABMag | ( | ndarray::Array< float const, 1 > const & | mag | ) |
ndarray::Array< T, 1 > lsst::afw::image::fluxFromABMag | ( | ndarray::Array< T const, 1 > const & | mag | ) |
void lsst::afw::image::for_each_pixel | ( | Image< LhsT > & | lhs, |
Image< RhsT > const & | rhs, | ||
pixelOp1< RhsT > const & | func | ||
) |
Set each pixel in an Image<LhsT> to func(rhs), getting the rhs from an Image<RhsT>
Definition at line 145 of file ImageAlgorithm.h.
void lsst::afw::image::for_each_pixel | ( | Image< LhsT > & | lhs, |
Image< RhsT > const & | rhs, | ||
pixelOp2< LhsT, RhsT > const & | func | ||
) |
Set each pixel in an Image<LhsT> to func(lhs, rhs), getting the rhs from an Image<RhsT>
Definition at line 170 of file ImageAlgorithm.h.
void lsst::afw::image::for_each_pixel | ( | Image< LhsT > & | lhs, |
Image< RhsT > const & | rhs, | ||
pixelOp2XY< LhsT, RhsT > const & | func | ||
) |
Set each pixel in an Image<LhsT> to func(x, y, lhs, rhs), getting the rhs from an Image<RhsT>
(x, y) allow for lhs.getXY0()
Definition at line 196 of file ImageAlgorithm.h.
void lsst::afw::image::for_each_pixel | ( | Image< LhsT > & | lhs, |
pixelOp0< LhsT > const & | func | ||
) |
Set each pixel in an Image<LhsT> to func()
lhs | Image to set |
func | functor to call |
Definition at line 97 of file ImageAlgorithm.h.
void lsst::afw::image::for_each_pixel | ( | Image< LhsT > & | lhs, |
pixelOp1< LhsT > const & | func | ||
) |
Set each pixel in an Image<LhsT> to func(lhs)
lhs | Image to set |
func | functor to call |
Definition at line 112 of file ImageAlgorithm.h.
void lsst::afw::image::for_each_pixel | ( | Image< LhsT > & | lhs, |
pixelOp1XY< LhsT > const & | func | ||
) |
Set each pixel in an Image<LhsT> to func(x, y, lhs)
(x, y) allow for lhs.getXY0()
lhs | Image to set |
func | functor to call |
Definition at line 129 of file ImageAlgorithm.h.
std::string lsst::afw::image::getDatabaseFilterLabel | ( | std::string const & | filterLabel | ) |
Remap special characters, etc.
to "_" for database fields.
Definition at line 45 of file FilterLabel.cc.
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
overrideprotected |
|
overrideprotected |
|
overridenoexcept |
Return a hash of this object.
bool lsst::afw::image::imagesOverlap | ( | ImageBase< T1 > const & | image1, |
ImageBase< T2 > const & | image2 | ||
) |
bool lsst::afw::image::imagesOverlap | ( | MaskedImage< ImagePixelT1, MaskPixel, VariancePixel > const & | image1, |
MaskedImage< ImagePixelT2, MaskPixel, VariancePixel > const & | image2 | ||
) |
Return true if the pixels for two masked images (image, variance or mask plane) overlap in memory.
Definition at line 685 of file MaskedImage.cc.
template bool lsst::afw::image::imagesOverlap< double, double > | ( | MaskedImage< double > const & | , |
MaskedImage< double > const & | |||
) |
template bool lsst::afw::image::imagesOverlap< double, float > | ( | MaskedImage< double > const & | , |
MaskedImage< float > const & | |||
) |
template bool lsst::afw::image::imagesOverlap< double, int > | ( | MaskedImage< double > const & | , |
MaskedImage< int > const & | |||
) |
template bool lsst::afw::image::imagesOverlap< double, std::uint16_t > | ( | MaskedImage< double > const & | , |
MaskedImage< std::uint16_t > const & | |||
) |
template bool lsst::afw::image::imagesOverlap< double, std::uint64_t > | ( | MaskedImage< double > const & | , |
MaskedImage< std::uint64_t > const & | |||
) |
template bool lsst::afw::image::imagesOverlap< float, double > | ( | MaskedImage< float > const & | , |
MaskedImage< double > const & | |||
) |
template bool lsst::afw::image::imagesOverlap< float, float > | ( | MaskedImage< float > const & | , |
MaskedImage< float > const & | |||
) |
template bool lsst::afw::image::imagesOverlap< float, int > | ( | MaskedImage< float > const & | , |
MaskedImage< int > const & | |||
) |
template bool lsst::afw::image::imagesOverlap< float, std::uint16_t > | ( | MaskedImage< float > const & | , |
MaskedImage< std::uint16_t > const & | |||
) |
template bool lsst::afw::image::imagesOverlap< float, std::uint64_t > | ( | MaskedImage< float > const & | , |
MaskedImage< std::uint64_t > const & | |||
) |
template bool lsst::afw::image::imagesOverlap< int, double > | ( | MaskedImage< int > const & | , |
MaskedImage< double > const & | |||
) |
template bool lsst::afw::image::imagesOverlap< int, float > | ( | MaskedImage< int > const & | , |
MaskedImage< float > const & | |||
) |
template bool lsst::afw::image::imagesOverlap< int, int > | ( | MaskedImage< int > const & | , |
MaskedImage< int > const & | |||
) |
template bool lsst::afw::image::imagesOverlap< int, std::uint16_t > | ( | MaskedImage< int > const & | , |
MaskedImage< std::uint16_t > const & | |||
) |
template bool lsst::afw::image::imagesOverlap< int, std::uint64_t > | ( | MaskedImage< int > const & | , |
MaskedImage< std::uint64_t > const & | |||
) |
template bool lsst::afw::image::imagesOverlap< std::uint16_t, double > | ( | MaskedImage< std::uint16_t > const & | , |
MaskedImage< double > const & | |||
) |
template bool lsst::afw::image::imagesOverlap< std::uint16_t, float > | ( | MaskedImage< std::uint16_t > const & | , |
MaskedImage< float > const & | |||
) |
template bool lsst::afw::image::imagesOverlap< std::uint16_t, int > | ( | MaskedImage< std::uint16_t > const & | , |
MaskedImage< int > const & | |||
) |
template bool lsst::afw::image::imagesOverlap< std::uint16_t, std::uint16_t > | ( | MaskedImage< std::uint16_t > const & | , |
MaskedImage< std::uint16_t > const & | |||
) |
template bool lsst::afw::image::imagesOverlap< std::uint16_t, std::uint64_t > | ( | MaskedImage< std::uint16_t > const & | , |
MaskedImage< std::uint64_t > const & | |||
) |
template bool lsst::afw::image::imagesOverlap< std::uint64_t, double > | ( | MaskedImage< std::uint64_t > const & | , |
MaskedImage< double > const & | |||
) |
template bool lsst::afw::image::imagesOverlap< std::uint64_t, float > | ( | MaskedImage< std::uint64_t > const & | , |
MaskedImage< float > const & | |||
) |
template bool lsst::afw::image::imagesOverlap< std::uint64_t, int > | ( | MaskedImage< std::uint64_t > const & | , |
MaskedImage< int > const & | |||
) |
template bool lsst::afw::image::imagesOverlap< std::uint64_t, std::uint16_t > | ( | MaskedImage< std::uint64_t > const & | , |
MaskedImage< std::uint16_t > const & | |||
) |
template bool lsst::afw::image::imagesOverlap< std::uint64_t, std::uint64_t > | ( | MaskedImage< std::uint64_t > const & | , |
MaskedImage< std::uint64_t > const & | |||
) |
|
inline |
Convert image index to image position.
The LSST indexing convention is:
ind | image index |
Definition at line 55 of file ImageUtils.h.
double lsst::afw::image::innerProduct | ( | Image1T const & | lhs, |
Image2T const & | rhs, | ||
int const | border = 0 |
||
) |
Calculate the inner product of two images.
lhs | first image |
rhs | Other image to dot with first |
border | number of pixels to ignore around the edge |
lsst::pex::exceptions::LengthError | if all the images aren't the same size |
Definition at line 415 of file ImagePca.cc.
std::shared_ptr<Exposure<ImagePixelT, MaskPixelT, VariancePixelT> > lsst::afw::image::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.
Definition at line 462 of file Exposure.h.
Filter lsst::afw::image::makeFilter | ( | FilterLabel const & | label | ) |
Convert a FilterLabel back to an old-style Filter.
label | The FilterLabel to convert. |
Definition at line 210 of file ExposureFitsReader.cc.
std::shared_ptr< FilterLabel > lsst::afw::image::makeFilterLabel | ( | Filter const & | filter | ) |
Convert an old-style Filter to a FilterLabel.
If a filter has been declared using lsst.obs.base.FilterDefinition
, that information (as encoded in the ~lsst.afw.image.Filter
registry) is used to infer the filter's band and physical filter.
filter | Any Filter object. |
Definition at line 121 of file ExposureFitsReader.cc.
std::shared_ptr<FilterLabel> lsst::afw::image::makeFilterLabel | ( | std::string const & | name | ) |
Convert an old-style single Filter name to a FilterLabel, using available information.
If a filter has been declared using lsst.obs.base.FilterDefinition
, that information (as encoded in the ~lsst.afw.image.Filter
registry) is used to infer the filter's band and physical filter.
name | The name persisted in a FITS file. May be any of a Filter's many names. |
Definition at line 177 of file ExposureFitsReader.cc.
std::shared_ptr<FilterLabel> lsst::afw::image::makeFilterLabelDirect | ( | std::string const & | name | ) |
Convert an old-style filter name to a FilterLabel without external information.
Guaranteed to not call any code related to Filter or FilterDefinition.
name | A name for the filter. |
Definition at line 94 of file ExposureFitsReader.cc.
MaskedImage<ImagePixelT, MaskPixelT, VariancePixelT>* lsst::afw::image::makeMaskedImage | ( | typename std::shared_ptr< Image< ImagePixelT >> | image, |
typename std::shared_ptr< Mask< MaskPixelT >> | mask = Mask<MaskPixelT>() , |
||
typename std::shared_ptr< Image< VariancePixelT >> | variance = Image<VariancePixelT>() |
||
) |
A function to return a MaskedImage of the correct type (cf.
image | image |
mask | mask |
variance | variance |
Definition at line 1268 of file MaskedImage.h.
std::shared_ptr< PhotoCalib > lsst::afw::image::makePhotoCalibFromCalibZeroPoint | ( | double | instFluxMag0, |
double | instFluxMag0Err | ||
) |
Construct a PhotoCalib from the deprecated Calib
-style instFluxMag0/instFluxMag0Err values.
This provides backwards compatibility with the obsoleted Calib object that PhotoCalib replaced. It should not be used outside of tests that compare with old persisted Calib objects.
instFluxMag0 | The instrumental flux at zero magnitude. If 0, the resulting PhotoCalib will have infinite calibrationMean and non-finite (inf or NaN) calibrationErr. |
instFluxMag0Err | The instrumental flux at zero magnitude error. If 0, the resulting PhotoCalib will have 0 calibrationErr. |
Definition at line 614 of file PhotoCalib.cc.
std::shared_ptr< PhotoCalib > lsst::afw::image::makePhotoCalibFromMetadata | ( | daf::base::PropertySet & | metadata, |
bool | strip = false |
||
) |
Construct a PhotoCalib from FITS FLUXMAG0/FLUXMAG0ERR keywords.
This provides backwards compatibility with the obsoleted Calib object that PhotoCalib replaced. It should not be used outside of reading old Exposures written before PhotoCalib existed.
metadata | FITS header metadata containing FLUXMAG0 and FLUXMAG0ERR keys. |
strip | Strip FLUXMAG0 and FLUXMAG0ERR from metadata ? |
Definition at line 596 of file PhotoCalib.cc.
|
noexcept |
std::shared_ptr< Image< PixelT > > lsst::afw::image::operator* | ( | Image< PixelT > const & | img, |
ImageSlice< PixelT > const & | slc | ||
) |
Overload operator*()
We'll define both 'image*slice' (this one) and 'slice*image' (next one down).
img | The Image |
slc | The ImageSlice |
Definition at line 104 of file ImageSlice.cc.
std::shared_ptr< Image< PixelT > > lsst::afw::image::operator* | ( | ImageSlice< PixelT > const & | slc, |
Image< PixelT > const & | img | ||
) |
Overload operator*()
We'll define both 'image*slice' (this one) and 'slice*image' (next one down).
slc | The Image |
img | The ImageSlice |
Definition at line 111 of file ImageSlice.cc.
Image< LhsPixelT > & lsst::afw::image::operator*= | ( | Image< LhsPixelT > & | lhs, |
Image< RhsPixelT > const & | rhs | ||
) |
Multiply lhs by Image rhs (i.e. pixel-by-pixel multiplication) where types are different.
Definition at line 683 of file Image.cc.
void lsst::afw::image::operator*= | ( | Image< PixelT > & | img, |
ImageSlice< PixelT > const & | slc | ||
) |
Overload operator*=()
Only 'image *= slice' is defined, as 'slice *= image' doesn't make sense.
[in,out] | img | The Image |
[in] | slc | The ImageSlice |
Definition at line 116 of file ImageSlice.cc.
std::shared_ptr< Image< PixelT > > lsst::afw::image::operator+ | ( | Image< PixelT > const & | img, |
ImageSlice< PixelT > const & | slc | ||
) |
Overload operator+()
We require two of these, one for image+slice (this one) and one for slice+image (next one down)
img | The Image |
slc | The ImageSlice |
Definition at line 69 of file ImageSlice.cc.
std::shared_ptr< Image< PixelT > > lsst::afw::image::operator+ | ( | ImageSlice< PixelT > const & | slc, |
Image< PixelT > const & | img | ||
) |
Overload operator+()
slc | The ImageSlice |
img | The Image |
We require two of these, one for image+slice (previous one) and one for slice+image (this)
Definition at line 76 of file ImageSlice.cc.
Image< LhsPixelT > & lsst::afw::image::operator+= | ( | Image< LhsPixelT > & | lhs, |
Image< RhsPixelT > const & | rhs | ||
) |
Add lhs to Image rhs (i.e. pixel-by-pixel addition) where types are different.
void lsst::afw::image::operator+= | ( | Image< PixelT > & | img, |
ImageSlice< PixelT > const & | slc | ||
) |
Overload operator+=()
We'll only allow 'image += slice'. It doesn't make sense to add an image to a slice.
[in,out] | img | The Image |
[in] | slc | The ImageSlice |
Definition at line 81 of file ImageSlice.cc.
std::shared_ptr< Image< PixelT > > lsst::afw::image::operator- | ( | Image< PixelT > const & | img, |
ImageSlice< PixelT > const & | slc | ||
) |
Overload operator-()
We'll only allow 'image - slice', as 'slice - image' doesn't make sense.
img | The Image |
slc | The ImageSlice |
Definition at line 89 of file ImageSlice.cc.
Image< LhsPixelT > & lsst::afw::image::operator-= | ( | Image< LhsPixelT > & | lhs, |
Image< RhsPixelT > const & | rhs | ||
) |
Subtract lhs from Image rhs (i.e. pixel-by-pixel subtraction) where types are different.
void lsst::afw::image::operator-= | ( | Image< PixelT > & | img, |
ImageSlice< PixelT > const & | slc | ||
) |
Overload operator-=()
Only 'image -= slice' is defined. 'slice -= image' wouldn't make sense.
[in,out] | img | The Image |
[in] | slc | The ImageSlice |
Definition at line 96 of file ImageSlice.cc.
std::shared_ptr< Image< PixelT > > lsst::afw::image::operator/ | ( | Image< PixelT > const & | img, |
ImageSlice< PixelT > const & | slc | ||
) |
Overload operator/()
Only 'image / slice' is defined, as 'slice / image' doesn't make sense.
img | The Image |
slc | The ImageSlice |
Definition at line 123 of file ImageSlice.cc.
Image< LhsPixelT > & lsst::afw::image::operator/= | ( | Image< LhsPixelT > & | lhs, |
Image< RhsPixelT > const & | rhs | ||
) |
Divide lhs by Image rhs (i.e. pixel-by-pixel division) where types are different.
void lsst::afw::image::operator/= | ( | Image< PixelT > & | img, |
ImageSlice< PixelT > const & | slc | ||
) |
Overload operator/=()
Only 'image /= slice' is defined, as 'slice /= image' doesn't make sense.
[in,out] | img | The Image |
[in] | slc | The ImageSlice |
Definition at line 130 of file ImageSlice.cc.
std::ostream & lsst::afw::image::operator<< | ( | std::ostream & | os, |
Measurement const & | measurement | ||
) |
Definition at line 48 of file PhotoCalib.cc.
std::ostream& lsst::afw::image::operator<< | ( | std::ostream & | os, |
PhotoCalib const & | photoCalib | ||
) |
Definition at line 257 of file PhotoCalib.cc.
std::ostream & lsst::afw::image::operator<< | ( | std::ostream & | os, |
VisitInfo const & | visitInfo | ||
) |
Definition at line 550 of file VisitInfo.cc.
|
defaultnoexcept |
|
default |
|
noexcept |
Return true iff two FilterProperties are identical.
rhs | Object to compare with this |
|
inline |
Convert image position to index (nearest integer and fractional parts)
The LSST indexing convention is:
Note: in python this is called positionToIndexAndResidual
residual | fractional part of index |
pos | image position |
Definition at line 85 of file ImageUtils.h.
|
inline |
Convert image position to index (nearest integer and fractional parts)
pos | image position |
Definition at line 98 of file ImageUtils.h.
|
inline |
Convert image position to nearest integer index.
The LSST indexing convention is:
pos | image position |
Definition at line 69 of file ImageUtils.h.
lsst::afw::image::PYBIND11_MODULE | ( | _exposure | , |
mod | |||
) |
Definition at line 166 of file _exposure.cc.
lsst::afw::image::PYBIND11_MODULE | ( | _imageLib | , |
mod | |||
) |
Definition at line 45 of file _imageLib.cc.
lsst::afw::image::PYBIND11_MODULE | ( | _maskedImage | , |
mod | |||
) |
Definition at line 244 of file _maskedImage.cc.
void lsst::afw::image::swap | ( | DecoratedImage< PixelT > & | a, |
DecoratedImage< PixelT > & | b | ||
) |
Definition at line 90 of file DecoratedImage.cc.
void lsst::afw::image::wrapCalib | ( | lsst::utils::python::WrapperCollection & | wrappers | ) |
void lsst::afw::image::wrapCoaddInputs | ( | lsst::utils::python::WrapperCollection & | wrappers | ) |
Definition at line 42 of file _coaddInputs.cc.
void lsst::afw::image::wrapColor | ( | lsst::utils::python::WrapperCollection & | wrappers | ) |
Definition at line 40 of file _color.cc.
void lsst::afw::image::wrapDefect | ( | lsst::utils::python::WrapperCollection & | wrappers | ) |
Definition at line 56 of file _defect.cc.
void lsst::afw::image::wrapExposure | ( | lsst::utils::python::WrapperCollection & | ) |
void lsst::afw::image::wrapExposureInfo | ( | lsst::utils::python::WrapperCollection & | wrappers | ) |
Definition at line 207 of file _exposureInfo.cc.
void lsst::afw::image::wrapFilter | ( | lsst::utils::python::WrapperCollection & | wrappers | ) |
Definition at line 98 of file _filter.cc.
void lsst::afw::image::wrapFilterLabel | ( | lsst::utils::python::WrapperCollection & | wrappers | ) |
Definition at line 116 of file _filterLabel.cc.
void lsst::afw::image::wrapImage | ( | lsst::utils::python::WrapperCollection & | wrappers | ) |
Definition at line 448 of file _image.cc.
void lsst::afw::image::wrapImagePca | ( | lsst::utils::python::WrapperCollection & | wrappers | ) |
Definition at line 73 of file _imagePca.cc.
void lsst::afw::image::wrapImageSlice | ( | lsst::utils::python::WrapperCollection & | wrappers | ) |
Definition at line 115 of file _imageSlice.cc.
void lsst::afw::image::wrapImageUtils | ( | lsst::utils::python::WrapperCollection & | wrappers | ) |
Definition at line 35 of file _imageUtils.cc.
void lsst::afw::image::wrapPhotoCalib | ( | lsst::utils::python::WrapperCollection & | wrappers | ) |
Definition at line 208 of file _photoCalib.cc.
void lsst::afw::image::wrapReaders | ( | lsst::utils::python::WrapperCollection & | wrappers | ) |
Definition at line 338 of file _readers.cc.
void lsst::afw::image::wrapTransmissionCurve | ( | lsst::utils::python::WrapperCollection & | wrappers | ) |
Definition at line 46 of file _transmissionCurve.cc.
void lsst::afw::image::wrapVisitInfo | ( | lsst::utils::python::WrapperCollection & | wrappers | ) |
Definition at line 122 of file _visitInfo.cc.
|
overrideprotected |
class Filter lsst::afw::image::final |
Describe the properties of a Filter (e.g.
Holds an integer identifier for an LSST filter.
effective wavelength)
const double lsst::afw::image::PixelZeroPos = 0.0 |
position of center of pixel 0
FITS uses 1.0, SDSS uses 0.5, LSST uses 0.0 (http://dev.lsstcorp.org/trac/wiki/BottomLeftPixelProposalII%3A)
Definition at line 44 of file ImageUtils.h.