LSSTApplications
17.0+11,17.0+34,17.0+56,17.0+57,17.0+59,17.0+7,17.0-1-g377950a+33,17.0.1-1-g114240f+2,17.0.1-1-g4d4fbc4+28,17.0.1-1-g55520dc+49,17.0.1-1-g5f4ed7e+52,17.0.1-1-g6dd7d69+17,17.0.1-1-g8de6c91+11,17.0.1-1-gb9095d2+7,17.0.1-1-ge9fec5e+5,17.0.1-1-gf4e0155+55,17.0.1-1-gfc65f5f+50,17.0.1-1-gfc6fb1f+20,17.0.1-10-g87f9f3f+1,17.0.1-11-ge9de802+16,17.0.1-16-ga14f7d5c+4,17.0.1-17-gc79d625+1,17.0.1-17-gdae4c4a+8,17.0.1-2-g26618f5+29,17.0.1-2-g54f2ebc+9,17.0.1-2-gf403422+1,17.0.1-20-g2ca2f74+6,17.0.1-23-gf3eadeb7+1,17.0.1-3-g7e86b59+39,17.0.1-3-gb5ca14a,17.0.1-3-gd08d533+40,17.0.1-30-g596af8797,17.0.1-4-g59d126d+4,17.0.1-4-gc69c472+5,17.0.1-6-g5afd9b9+4,17.0.1-7-g35889ee+1,17.0.1-7-gc7c8782+18,17.0.1-9-gc4bbfb2+3,w.2019.22
LSSTDataManagementBasePackage
|
Backwards-compatibility support for depersisting the old Calib (FluxMag0/FluxMag0Err) objects. More...
Namespaces | |
apCorrMap | |
basicUtils | |
detail | |
details | |
exposure | |
image | |
makeVisitInfo | |
maskedImage | |
photoCalibContinued | |
pixel | |
python | |
SdssFilters | |
slicing | |
testUtils | |
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 | Filter |
Holds an integer identifier for an LSST filter. More... | |
class | FilterProperty |
Describe the properties of a Filter (e.g. 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 | |
typedef std::int32_t | MaskPixel |
default type for Masks and MaskedImage Masks More... | |
typedef float | VariancePixel |
default type for MaskedImage variance images More... | |
Enumerations | |
enum | ImageOrigin { PARENT, LOCAL } |
enum | xOrY { X, Y } |
enum | RotType { RotType::UNKNOWN, RotType::SKY, RotType::HORIZON, RotType::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... | |
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::shared_ptr< daf::base::PropertyList > | readMetadata (std::string const &fileName, int hdu=fits::DEFAULT_HDU, bool strip=false) |
Return the metadata (header entries) from a FITS file. 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) |
PYBIND11_MODULE (imagePca, mod) | |
PYBIND11_MODULE (maskedImage, mod) | |
PYBIND11_MODULE (readMetadata, mod) | |
PYBIND11_MODULE (visitInfo, 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) |
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 | |
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.
typedef float lsst::afw::image::VariancePixel |
default type for MaskedImage variance images
Definition at line 35 of file LsstImageTypes.h.
Enumerator | |
---|---|
PARENT | |
LOCAL |
Definition at line 95 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.
|
inline |
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.
template ndarray::Array< float , 1> lsst::afw::image::abMagErrFromFluxErr | ( | ndarray::Array< float const, 1 > const & | fluxErr, |
ndarray::Array< float const, 1 > const & | flux | ||
) |
template ndarray::Array< double , 1> lsst::afw::image::abMagErrFromFluxErr | ( | ndarray::Array< double const, 1 > const & | fluxErr, |
ndarray::Array< double const, 1 > const & | flux | ||
) |
|
inline |
ndarray::Array< T, 1 > lsst::afw::image::abMagFromFlux | ( | ndarray::Array< T const, 1 > const & | flux | ) |
template ndarray::Array< float , 1> lsst::afw::image::abMagFromFlux | ( | ndarray::Array< float const, 1 > const & | flux | ) |
template ndarray::Array< double , 1> lsst::afw::image::abMagFromFlux | ( | ndarray::Array< double 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 71 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 709 of file Image.cc.
|
inlinenoexcept |
Compute flux error in Janskys from AB magnitude error and AB magnitude.
Definition at line 60 of file Calib.h.
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 78 of file Calib.cc.
template ndarray::Array< float , 1> lsst::afw::image::fluxErrFromABMagErr | ( | ndarray::Array< float const, 1 > const & | magErr, |
ndarray::Array< float const, 1 > const & | mag | ||
) |
template ndarray::Array< double , 1> lsst::afw::image::fluxErrFromABMagErr | ( | ndarray::Array< double const, 1 > const & | magErr, |
ndarray::Array< double const, 1 > const & | mag | ||
) |
|
inlinenoexcept |
ndarray::Array< T, 1 > lsst::afw::image::fluxFromABMag | ( | ndarray::Array< T const, 1 > const & | mag | ) |
template ndarray::Array< float , 1> lsst::afw::image::fluxFromABMag | ( | ndarray::Array< float const, 1 > const & | mag | ) |
template ndarray::Array< double , 1> lsst::afw::image::fluxFromABMag | ( | ndarray::Array< double const, 1 > const & | mag | ) |
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 98 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 113 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 130 of file ImageAlgorithm.h.
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 146 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 171 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 197 of file ImageAlgorithm.h.
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 679 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 457 of file Exposure.h.
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 1280 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 644 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 626 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.
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.
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 698 of file Image.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.
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.
Definition at line 686 of file Image.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.
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.
Definition at line 692 of file Image.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.
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.
Definition at line 704 of file Image.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, |
VisitInfo const & | visitInfo | ||
) |
Definition at line 476 of file VisitInfo.cc.
std::ostream& lsst::afw::image::operator<< | ( | std::ostream & | os, |
PhotoCalib const & | photoCalib | ||
) |
Definition at line 285 of file PhotoCalib.cc.
|
inline |
Convert image position to nearest integer index.
The LSST indexing convention is:
pos | image position |
Definition at line 69 of file ImageUtils.h.
|
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.
lsst::afw::image::PYBIND11_MODULE | ( | readMetadata | , |
mod | |||
) |
Definition at line 34 of file readMetadata.cc.
lsst::afw::image::PYBIND11_MODULE | ( | visitInfo | , |
mod | |||
) |
Definition at line 54 of file visitInfo.cc.
lsst::afw::image::PYBIND11_MODULE | ( | imagePca | , |
mod | |||
) |
Definition at line 63 of file imagePca.cc.
lsst::afw::image::PYBIND11_MODULE | ( | maskedImage | , |
mod | |||
) |
Definition at line 227 of file maskedImage.cc.
|
inline |
Return the metadata (header entries) from a FITS file.
[in] | fileName | File to read. |
[in] | hdu | HDU to read, 0-indexed. The special value of afw::fits::DEFAULT_HDU will read the first non-empty HDU. |
[in] | strip | If true, ignore special header keys usually managed by cfitsio (e.g. NAXIS). |
Definition at line 64 of file Utils.h.
void lsst::afw::image::swap | ( | ImageBase< PixelT > & | a, |
ImageBase< PixelT > & | b | ||
) |
void lsst::afw::image::swap | ( | DecoratedImage< PixelT > & | a, |
DecoratedImage< PixelT > & | b | ||
) |
Definition at line 92 of file DecoratedImage.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.