|
lsst.afw g4f4f280218+81551fceaa
|
Backwards-compatibility support for depersisting the old Calib (FluxMag0/FluxMag0Err) objects. More...
Namespaces | |
| namespace | _exposureFitsReaderContinued |
| namespace | _exposureInfoContinued |
| namespace | _exposureSummaryStats |
| namespace | _filter |
| namespace | _visitInfo |
| namespace | apCorrMap |
| namespace | basicUtils |
| namespace | detail |
| namespace | details |
| namespace | exposure |
| namespace | image |
| namespace | impl |
| namespace | maskedImage |
| namespace | pixel |
| namespace | python |
| namespace | SdssFilters |
| namespace | testUtils |
| namespace | utils |
Classes | |
| class | ApCorrMap |
| A thin wrapper around std::map to allow aperture corrections to be attached to Exposures. More... | |
| class | CheckIndices |
| A class used to request that array accesses be checked. 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... | |
| struct | ConstReference |
| metafunction to extract const reference type from PixelT More... | |
| class | DecoratedImage |
| A container for an Image and its associated metadata. 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... | |
| struct | GetImage |
| class | Image |
| A class to represent a 2-dimensional array of pixels. 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 | imageIterator |
| An ImageBase iterator. More... | |
| class | imageLocator |
| An ImageBase locator. 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... | |
| 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... | |
| 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... | |
| struct | Reference |
| metafunction to extract reference type from PixelT 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 | |
| using | MaskPixel = std::int32_t |
| default type for Masks and MaskedImage Masks More... | |
| using | VariancePixel = float |
| default type for MaskedImage variance images More... | |
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... | |
| std::ostream & | operator<< (std::ostream &os, VisitInfo const &visitInfo) |
| 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) |
| bool | _eqOrNan (double lhs, double rhs) noexcept |
| Test whether two numbers are exactly equal or both NaN. More... | |
| bool | _eqOrNonFinite (lsst::geom::SpherePoint const &lhs, lsst::geom::SpherePoint const &rhs) noexcept |
| Test whether two SpherePoints are exactly equal or invalid. More... | |
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.
| using lsst::afw::image::MaskPixel = typedef std::int32_t |
default type for Masks and MaskedImage Masks
Definition at line 34 of file LsstImageTypes.h.
| using lsst::afw::image::VariancePixel = typedef float |
default type for MaskedImage variance images
Definition at line 35 of file LsstImageTypes.h.
| Enumerator | |
|---|---|
| PARENT | |
| LOCAL | |
Definition at line 94 of file ImageBase.h.
|
strong |
Type of rotation.
Definition at line 45 of file VisitInfo.h.
| Enumerator | |
|---|---|
| X | |
| Y | |
Definition at line 36 of file ImageUtils.h.
|
defaultnoexcept |
|
noexcept |
Test whether two numbers are exactly equal or both NaN.
This function is exactly equivalent to operator==(double, double), except that NaNs compare equal (NaNs of different values also compare equal).
Definition at line 481 of file VisitInfo.cc.
|
noexcept |
Test whether two SpherePoints are exactly equal or invalid.
This function is needed because SpherePoint::operation== is specifically designed to be ill-behaved when NaN values are involved.
Definition at line 489 of file VisitInfo.cc.
|
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 | ||
| ) |
|
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.
| lsst::geom::Box2I lsst::afw::image::bboxFromMetadata | ( | daf::base::PropertySet & | metadata | ) |
|
defaultnoexcept |
|
default |
|
inlinenoexcept |
| 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 142 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 167 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 193 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 94 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 109 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 126 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 | ( | 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 680 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 414 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 211 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 122 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 178 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 95 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 1240 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 613 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 595 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.
| 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.
| 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.
| 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.
| 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 47 of file PhotoCalib.cc.
| std::ostream & lsst::afw::image::operator<< | ( | std::ostream & | os, |
| PhotoCalib const & | photoCalib | ||
| ) |
Definition at line 256 of file PhotoCalib.cc.
| std::ostream & lsst::afw::image::operator<< | ( | std::ostream & | os, |
| VisitInfo const & | visitInfo | ||
| ) |
Definition at line 594 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.
| void lsst::afw::image::swap | ( | DecoratedImage< PixelT > & | a, |
| DecoratedImage< PixelT > & | b | ||
| ) |
Definition at line 78 of file DecoratedImage.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.