LSST Applications 26.0.0,g0265f82a02+6660c170cc,g07994bdeae+30b05a742e,g0a0026dc87+17526d298f,g0a60f58ba1+17526d298f,g0e4bf8285c+96dd2c2ea9,g0ecae5effc+c266a536c8,g1e7d6db67d+6f7cb1f4bb,g26482f50c6+6346c0633c,g2bbee38e9b+6660c170cc,g2cc88a2952+0a4e78cd49,g3273194fdb+f6908454ef,g337abbeb29+6660c170cc,g337c41fc51+9a8f8f0815,g37c6e7c3d5+7bbafe9d37,g44018dc512+6660c170cc,g4a941329ef+4f7594a38e,g4c90b7bd52+5145c320d2,g58be5f913a+bea990ba40,g635b316a6c+8d6b3a3e56,g67924a670a+bfead8c487,g6ae5381d9b+81bc2a20b4,g93c4d6e787+26b17396bd,g98cecbdb62+ed2cb6d659,g98ffbb4407+81bc2a20b4,g9ddcbc5298+7f7571301f,ga1e77700b3+99e9273977,gae46bcf261+6660c170cc,gb2715bf1a1+17526d298f,gc86a011abf+17526d298f,gcf0d15dbbd+96dd2c2ea9,gdaeeff99f8+0d8dbea60f,gdb4ec4c597+6660c170cc,ge23793e450+96dd2c2ea9,gf041782ebf+171108ac67
LSST Data Management Base Package
|
Namespaces | |
namespace | _apCorrMap |
namespace | _basicUtils |
namespace | _exposure |
namespace | _exposureInfoContinued |
namespace | _exposureSummaryStats |
namespace | _image |
namespace | _maskedImage |
namespace | _photoCalibContinued |
namespace | _visitInfo |
namespace | detail |
namespace | details |
namespace | exposure |
namespace | impl |
namespace | pixel |
namespace | python |
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 | |
using | VariancePixel = float |
default type for MaskedImage variance images | |
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. | |
double | abMagErrFromFluxErr (double fluxErr, double flux) |
Compute AB magnitude error from flux and flux error in Janskys. | |
double | fluxFromABMag (double mag) noexcept |
Compute flux in Janskys from AB magnitude. | |
double | fluxErrFromABMagErr (double magErr, double mag) noexcept |
Compute flux error in Janskys from AB magnitude error and AB magnitude. | |
template<typename T > | |
ndarray::Array< T, 1 > | abMagFromFlux (ndarray::Array< T const, 1 > const &flux) |
Compute AB magnitude from flux in Janskys. | |
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. | |
template<typename T > | |
ndarray::Array< T, 1 > | fluxFromABMag (ndarray::Array< T const, 1 > const &mag) |
Compute flux in Janskys from AB magnitude. | |
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. | |
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. | |
std::string | getDatabaseFilterLabel (std::string const &filterLabel) |
Remap special characters, etc. | |
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. | |
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. | |
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. | |
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. | |
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) | |
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. | |
template<typename LhsT > | |
void | for_each_pixel (Image< LhsT > &lhs, pixelOp0< LhsT > const &func) |
Set each pixel in an Image<LhsT> to func() | |
template<typename LhsT > | |
void | for_each_pixel (Image< LhsT > &lhs, pixelOp1< LhsT > const &func) |
Set each pixel in an Image<LhsT> to func(lhs) | |
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) | |
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> | |
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> | |
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> | |
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. | |
template<typename PixelT > | |
std::shared_ptr< Image< PixelT > > | operator+ (Image< PixelT > const &img, ImageSlice< PixelT > const &slc) |
Overload operator+() | |
template<typename PixelT > | |
std::shared_ptr< Image< PixelT > > | operator+ (ImageSlice< PixelT > const &slc, Image< PixelT > const &img) |
Overload operator+() | |
template<typename PixelT > | |
void | operator+= (Image< PixelT > &img, ImageSlice< PixelT > const &slc) |
Overload operator+=() | |
template<typename PixelT > | |
std::shared_ptr< Image< PixelT > > | operator- (Image< PixelT > const &img, ImageSlice< PixelT > const &slc) |
Overload operator-() | |
template<typename PixelT > | |
void | operator-= (Image< PixelT > &img, ImageSlice< PixelT > const &slc) |
Overload operator-=() | |
template<typename PixelT > | |
std::shared_ptr< Image< PixelT > > | operator* (Image< PixelT > const &img, ImageSlice< PixelT > const &slc) |
Overload operator*() | |
template<typename PixelT > | |
std::shared_ptr< Image< PixelT > > | operator* (ImageSlice< PixelT > const &slc, Image< PixelT > const &img) |
Overload operator*() | |
template<typename PixelT > | |
void | operator*= (Image< PixelT > &img, ImageSlice< PixelT > const &slc) |
Overload operator*=() | |
template<typename PixelT > | |
std::shared_ptr< Image< PixelT > > | operator/ (Image< PixelT > const &img, ImageSlice< PixelT > const &slc) |
Overload operator/() | |
template<typename PixelT > | |
void | operator/= (Image< PixelT > &img, ImageSlice< PixelT > const &slc) |
Overload operator/=() | |
double | indexToPosition (double ind) |
Convert image index to image position. | |
int | positionToIndex (double pos) |
Convert image position to nearest integer index. | |
int | positionToIndex (double &residual, double pos) |
Convert image position to index (nearest integer and fractional parts) | |
std::pair< int, double > | positionToIndex (double const pos, bool) |
Convert image position to index (nearest integer and fractional parts) | |
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. | |
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. | |
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. | |
std::shared_ptr< PhotoCalib > | makePhotoCalibFromMetadata (daf::base::PropertySet &metadata, bool strip=false) |
Construct a PhotoCalib from FITS FLUXMAG0/FLUXMAG0ERR keywords. | |
std::shared_ptr< PhotoCalib > | makePhotoCalibFromCalibZeroPoint (double instFluxMag0, double instFluxMag0Err) |
Construct a PhotoCalib from the deprecated Calib -style instFluxMag0/instFluxMag0Err values. | |
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) |
PYBIND11_MODULE (_exposure, mod) | |
void | wrapExposureInfo (lsst::utils::python::WrapperCollection &wrappers) |
void | wrapFilterLabel (lsst::utils::python::WrapperCollection &wrappers) |
void | wrapImage (lsst::utils::python::WrapperCollection &wrappers) |
void | wrapImageSlice (lsst::utils::python::WrapperCollection &) |
PYBIND11_MODULE (_imageLib, mod) | |
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 (_maskedImage, mod) | |
void | declareVisitInfo (lsst::utils::python::WrapperCollection &wrappers) |
void | declareRotType (lsst::utils::python::WrapperCollection &wrappers) |
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. | |
std::shared_ptr< FilterLabel > | makeFilterLabel (std::string const &name) |
Convert an old-style single Filter name to a FilterLabel, using available information. | |
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. | |
bool | _eqOrNonFinite (lsst::geom::SpherePoint const &lhs, lsst::geom::SpherePoint const &rhs) noexcept |
Test whether two SpherePoints are exactly equal or invalid. | |
Variables | |
const double | PixelZeroPos = 0.0 |
position of center of pixel 0 | |
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::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.
using lsst::afw::image::VariancePixel = typedef float |
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.
|
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 539 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 547 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 | ||
) |
Compute AB magnitude error from flux and flux error in Janskys.
Definition at line 51 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 | ) |
Compute AB magnitude from flux in Janskys.
Definition at line 41 of file Calib.cc.
|
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 | ) |
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 681 of file Image.cc.
void lsst::afw::image::declareRotType | ( | lsst::utils::python::WrapperCollection & | wrappers | ) |
Definition at line 148 of file _visitInfo.cc.
void lsst::afw::image::declareVisitInfo | ( | lsst::utils::python::WrapperCollection & | wrappers | ) |
Definition at line 57 of file _visitInfo.cc.
|
inlinenoexcept |
Compute flux error in Janskys from AB magnitude error and AB magnitude.
Definition at line 68 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 | ||
) |
Compute flux error in Janskys from AB magnitude error and AB magnitude.
Definition at line 77 of file Calib.cc.
|
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 | ) |
Compute flux in Janskys from AB magnitude.
Definition at line 67 of file Calib.cc.
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.
bool lsst::afw::image::imagesOverlap | ( | ImageBase< T1 > const & | image1, |
ImageBase< T2 > const & | image2 | ||
) |
Return true if the pixels for two images or masks overlap in memory.
Definition at line 693 of file Image.cc.
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 413 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 484 of file Exposure.h.
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.
name | The name persisted in a FITS file. May be any of a Filter's many names. |
Definition at line 117 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 1241 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.
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 670 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 666 of file VisitInfo.cc.
|
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 193 of file _exposure.cc.
lsst::afw::image::PYBIND11_MODULE | ( | _imageLib | , |
mod | |||
) |
Definition at line 34 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 78 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 224 of file _exposureInfo.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 209 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 158 of file _visitInfo.cc.
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.