LSSTApplications
10.0+286,10.0+36,10.0+46,10.0-2-g4f67435,10.1+152,10.1+37,11.0,11.0+1,11.0-1-g47edd16,11.0-1-g60db491,11.0-1-g7418c06,11.0-2-g04d2804,11.0-2-g68503cd,11.0-2-g818369d,11.0-2-gb8b8ce7
LSSTDataManagementBasePackage
|
Namespaces | |
basicUtils | |
detail | |
details | |
pixel | |
SdssFilters | |
testUtils | |
utils | |
Classes | |
class | ApCorrMap |
A thin wrapper around std::map to allow aperture corrections to be attached to Exposures. More... | |
class | Calib |
class | CoaddInputs |
A simple Persistable struct containing ExposureCatalogs that record the inputs to a coadd. More... | |
class | Color |
class | DefectBase |
Encapsulate information about a bad portion of a detector. More... | |
class | DistortedTanWcs |
Combination of a TAN WCS and a distortion model. More... | |
class | Exposure |
A class to contain the data, WCS, and other information needed to describe an image of the sky. More... | |
class | ExposureInfo |
A collection of all the things that make an Exposure different from a MaskedImage. More... | |
class | FilterProperty |
class | Filter |
Holds an integer identifier for an LSST filter. More... | |
class | CheckIndices |
A class used to request that array accesses be checked. More... | |
struct | Reference |
metafunction to extract reference type from PixelT More... | |
struct | ConstReference |
metafunction to extract const reference type from PixelT More... | |
class | ImageBase |
The base class for all image classed (Image, Mask, MaskedImage, ...) More... | |
class | Image |
A class to represent a 2-dimensional array of pixels. More... | |
class | DecoratedImage |
A container for an Image and its associated metadata. More... | |
struct | pixelOp0 |
struct | pixelOp1 |
struct | pixelOp1XY |
struct | pixelOp2 |
struct | pixelOp2XY |
class | ImagePca |
class | ImageSlice |
A class to specify a slice of an image. More... | |
class | Mask |
Represent a 2-dimensional array of bitmask pixels. More... | |
class | MaskedImage |
A class to manipulate images, masks, and variance as a single object. More... | |
struct | GetImage |
class | TanWcs |
Implementation of the WCS standard for the special case of the Gnomonic (tangent plane) projection. More... | |
class | Wcs |
Implementation of the WCS standard for a any projection. More... | |
class | XYTransformFromWcsPair |
XYTransformFromWcsPair: An XYTransform obtained by putting two Wcs objects "back to back". More... | |
class | imageIterator |
An ImageBase iterator. More... | |
class | imageLocator |
An ImageBase locator. More... | |
class | WcsFactory |
Typedefs | |
typedef boost::uint16_t | MaskPixel |
typedef float | VariancePixel |
! default type for Masks and MaskedImage Masks More... | |
Enumerations | |
enum | ImageOrigin { PARENT, LOCAL } |
enum | xOrY { X, Y } |
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) |
Compute flux in Janskys from AB magnitude. More... | |
double | fluxErrFromABMagErr (double magErr, double mag) |
Compute flux error in Janskys from AB magnitude error and AB magnitude. More... | |
template<typename ImagePixelT , typename MaskPixelT , typename VariancePixelT > | |
Exposure< ImagePixelT, MaskPixelT, VariancePixelT > ::Ptr | makeExposure (MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT > &mimage, boost::shared_ptr< Wcs const > wcs=boost::shared_ptr< Wcs const >()) |
template<typename PixelT > | |
void | fits_read_array (fits::Fits &fitsfile, ndarray::Array< PixelT, 2, 2 > &array, geom::Point2I &xy0, lsst::daf::base::PropertySet &metadata, geom::Box2I bbox=geom::Box2I(), ImageOrigin origin=PARENT) |
template<typename ImageT > | |
void | fits_write_image (fits::Fits &fitsfile, const ImageT &image, boost::shared_ptr< daf::base::PropertySet const > metadata=boost::shared_ptr< daf::base::PropertySet const >()) |
template<typename supported_fits_types , typename ImageT > | |
void | fits_read_image (fits::Fits &fitsfile, ImageT &img, lsst::daf::base::PropertySet &metadata, geom::Box2I const &bbox=geom::Box2I(), ImageOrigin const origin=PARENT) |
template<typename supported_fits_types , typename ImageT > | |
void | fits_read_image (fits::Fits &fitsfile, ImageT &img, boost::shared_ptr< lsst::daf::base::PropertySet > metadata=boost::shared_ptr< lsst::daf::base::PropertySet >(), geom::Box2I const &bbox=geom::Box2I(), ImageOrigin const origin=PARENT) |
template<typename PixelT > | |
void | swap (ImageBase< PixelT > &a, ImageBase< PixelT > &b) |
template<typename LhsPixelT , typename RhsPixelT > | |
void | operator+= (Image< LhsPixelT > &lhs, Image< RhsPixelT > const &rhs) |
template<typename LhsPixelT , typename RhsPixelT > | |
void | operator-= (Image< LhsPixelT > &lhs, Image< RhsPixelT > const &rhs) |
template<typename LhsPixelT , typename RhsPixelT > | |
void | operator*= (Image< LhsPixelT > &lhs, Image< RhsPixelT > const &rhs) |
template<typename LhsPixelT , typename RhsPixelT > | |
void | operator/= (Image< LhsPixelT > &lhs, Image< RhsPixelT > const &rhs) |
template<typename PixelT > | |
void | swap (Image< PixelT > &a, Image< PixelT > &b) |
template<typename PixelT > | |
void | swap (DecoratedImage< PixelT > &a, DecoratedImage< PixelT > &b) |
template<typename LhsT > | |
void | for_each_pixel (Image< LhsT > &lhs, pixelOp0< LhsT > const &func) |
template<typename LhsT > | |
void | for_each_pixel (Image< LhsT > &lhs, pixelOp1< LhsT > const &func) |
template<typename LhsT > | |
void | for_each_pixel (Image< LhsT > &lhs, pixelOp1XY< LhsT > const &func) |
template<typename LhsT , typename RhsT > | |
void | for_each_pixel (Image< LhsT > &lhs, Image< RhsT > const &rhs, pixelOp1< RhsT > const &func) |
template<typename LhsT , typename RhsT > | |
void | for_each_pixel (Image< LhsT > &lhs, Image< RhsT > const &rhs, pixelOp2< LhsT, RhsT > const &func) |
template<typename LhsT , typename RhsT > | |
void | for_each_pixel (Image< LhsT > &lhs, Image< RhsT > const &rhs, pixelOp2XY< LhsT, RhsT > const &func) |
template<typename Image1T , typename Image2T > | |
double | innerProduct (Image1T const &lhs, Image2T const &rhs, int const border=0) |
template<typename PixelT > | |
Image< PixelT >::Ptr | operator+ (Image< PixelT > const &img, ImageSlice< PixelT > const &slc) |
template<typename PixelT > | |
Image< PixelT >::Ptr | operator+ (ImageSlice< PixelT > const &slc, Image< PixelT > const &img) |
template<typename PixelT > | |
void | operator+= (Image< PixelT > &img, ImageSlice< PixelT > const &slc) |
Overload operator+=() More... | |
template<typename PixelT > | |
Image< PixelT >::Ptr | operator- (Image< PixelT > const &img, ImageSlice< PixelT > const &slc) |
template<typename PixelT > | |
void | operator-= (Image< PixelT > &img, ImageSlice< PixelT > const &slc) |
Overload operator-=() More... | |
template<typename PixelT > | |
Image< PixelT >::Ptr | operator* (Image< PixelT > const &img, ImageSlice< PixelT > const &slc) |
template<typename PixelT > | |
Image< PixelT >::Ptr | operator* (ImageSlice< PixelT > const &slc, Image< PixelT > const &img) |
template<typename PixelT > | |
void | operator*= (Image< PixelT > &img, ImageSlice< PixelT > const &slc) |
Overload operator*=() More... | |
template<typename PixelT > | |
Image< PixelT >::Ptr | operator/ (Image< PixelT > const &img, ImageSlice< PixelT > const &slc) |
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 Image< ImagePixelT >::Ptr image, typename Mask< MaskPixelT >::Ptr mask=typename Mask< MaskPixelT >::Ptr(), typename Image< VariancePixelT >::Ptr variance=typename Image< VariancePixelT >::Ptr()) |
boost::shared_ptr < daf::base::PropertySet > | readMetadata (std::string const &fileName, int hdu=0, bool strip=false) |
Return the metadata (header entries) from a FITS file. More... | |
Wcs::Ptr | makeWcs (boost::shared_ptr< lsst::daf::base::PropertySet > const &fitsMetadata, bool stripMetadata=false) |
Wcs::Ptr | makeWcs (coord::Coord const &crval, geom::Point2D const &crpix, double CD11, double CD12, double CD21, double CD22) |
Create a Wcs object from crval, crpix, CD, using CD elements (useful from python) More... | |
Variables | |
const double | PixelZeroPos = 0.0 |
FITS uses 1.0, SDSS uses 0.5, LSST uses 0.0 (http://dev.lsstcorp.org/trac/wiki/BottomLeftPixelProposalII%3A) More... | |
typedef boost::uint16_t lsst::afw::image::MaskPixel |
Definition at line 33 of file LsstImageTypes.h.
typedef float lsst::afw::image::VariancePixel |
! default type for Masks and MaskedImage Masks
Definition at line 34 of file LsstImageTypes.h.
Enumerator | |
---|---|
PARENT | |
LOCAL |
Definition at line 107 of file Image.h.
Enumerator | |
---|---|
X | |
Y |
Definition at line 40 of file ImageUtils.h.
|
inline |
|
inline |
|
inline |
Definition at line 39 of file fits_io.h.
void lsst::afw::image::fits_read_image | ( | fits::Fits & | fitsfile, |
ImageT & | img, | ||
lsst::daf::base::PropertySet & | metadata, | ||
geom::Box2I const & | bbox = geom::Box2I() , |
||
ImageOrigin const | origin = PARENT |
||
) |
Definition at line 87 of file fits_io_mpl.h.
void lsst::afw::image::fits_read_image | ( | fits::Fits & | fitsfile, |
ImageT & | img, | ||
boost::shared_ptr< lsst::daf::base::PropertySet > | metadata = boost::shared_ptr< lsst::daf::base::PropertySet >() , |
||
geom::Box2I const & | bbox = geom::Box2I() , |
||
ImageOrigin const | origin = PARENT |
||
) |
Definition at line 113 of file fits_io_mpl.h.
|
inline |
|
inline |
Compute flux error in Janskys from AB magnitude error and AB magnitude.
Definition at line 74 of file Calib.h.
|
inline |
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 103 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 119 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 137 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>
lhs | Image to set |
rhs | other Image to pass to func |
func | functor to call |
Definition at line 154 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>
lhs | Image to set |
rhs | other Image to pass to func |
func | functor to call |
Definition at line 179 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()
lhs | Image to set |
rhs | other Image to pass to func |
func | functor to call |
Definition at line 205 of file ImageAlgorithm.h.
|
inline |
Convert image index to image position.
The LSST indexing convention is:
ind | image index |
Definition at line 54 of file ImageUtils.h.
double lsst::afw::image::innerProduct | ( | Image1T const & | lhs, |
Image2T const & | rhs, | ||
int | border | ||
) |
Calculate the inner product of two images
lsst::pex::exceptions::LengthError | if all the images aren't the same size |
lhs | first image |
rhs | Other image to dot with first |
border | number of pixels to ignore around the edge |
Definition at line 454 of file ImagePca.cc.
Exposure<ImagePixelT, MaskPixelT, VariancePixelT>::Ptr lsst::afw::image::makeExposure | ( | MaskedImage< ImagePixelT, MaskPixelT, VariancePixelT > & | mimage, |
boost::shared_ptr< Wcs const > | wcs = boost::shared_ptr< Wcs const>() |
||
) |
A function to return an Exposure of the correct type (cf. std::make_pair)
mimage | the Exposure's image |
wcs | the Exposure's WCS |
Definition at line 308 of file Exposure.h.
MaskedImage<ImagePixelT, MaskPixelT, VariancePixelT>* lsst::afw::image::makeMaskedImage | ( | typename Image< ImagePixelT >::Ptr | image, |
typename Mask< MaskPixelT >::Ptr | mask = typename Mask<MaskPixelT>::Ptr() , |
||
typename Image< VariancePixelT >::Ptr | variance = typename Image<VariancePixelT>::Ptr() |
||
) |
A function to return a MaskedImage of the correct type (cf. std::make_pair)
image | image |
mask | mask |
variance | variance |
Definition at line 1067 of file MaskedImage.h.
afwImg::Wcs::Ptr lsst::afw::image::makeWcs | ( | boost::shared_ptr< lsst::daf::base::PropertySet > const & | _metadata, |
bool | stripMetadata = false |
||
) |
Set stripMetadata=true to remove processed keywords from the PropertySet.
Create a Wcs object from a fits header. It examines the header and determines the most suitable object to return, either a general Wcs object, or a more specific object specialised to a given coordinate system (e.g TanWcs)
_metadata | input metadata |
stripMetadata | Remove FITS keywords from metadata? |
Definition at line 40 of file makeWcs.cc.
afwImg::Wcs::Ptr lsst::afw::image::makeWcs | ( | coord::Coord const & | crval, |
geom::Point2D const & | crpix, | ||
double | CD11, | ||
double | CD12, | ||
double | CD21, | ||
double | CD22 | ||
) |
Create a Wcs object from crval, crpix, CD, using CD elements (useful from python)
crval | CRVAL1,2 (ie. the sky origin) |
crpix | CRPIX1,2 (ie. the pixel origin) in pixels |
CD11 | CD matrix element 1,1 |
CD12 | CD matrix element 1,2 |
CD21 | CD matrix element 2,1 |
CD22 | CD matrix element 2,2 |
Definition at line 141 of file makeWcs.cc.
Image<PixelT>::Ptr lsst::afw::image::operator* | ( | Image< PixelT > const & | img, |
ImageSlice< PixelT > const & | slc | ||
) |
Image<PixelT>::Ptr lsst::afw::image::operator* | ( | ImageSlice< PixelT > const & | slc, |
Image< PixelT > const & | img | ||
) |
void lsst::afw::image::operator*= | ( | afwImage::Image< PixelT > & | img, |
afwImage::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 204 of file ImageSlice.cc.
void lsst::afw::image::operator*= | ( | image::Image< LhsPixelT > & | lhs, |
image::Image< RhsPixelT > const & | rhs | ||
) |
Multiply lhs by Image rhs (i.e. pixel-by-pixel multiplication) where types are different
Definition at line 861 of file Image.cc.
Image<PixelT>::Ptr lsst::afw::image::operator+ | ( | Image< PixelT > const & | img, |
ImageSlice< PixelT > const & | slc | ||
) |
Image<PixelT>::Ptr lsst::afw::image::operator+ | ( | ImageSlice< PixelT > const & | slc, |
Image< PixelT > const & | img | ||
) |
void lsst::afw::image::operator+= | ( | afwImage::Image< PixelT > & | img, |
afwImage::ImageSlice< PixelT > const & | slc | ||
) |
Overload operator+=()
We'll only allow 'image += slice'. It doesn't make sense to add an image to a slice.
img | The Image |
slc | The ImageSlice |
Definition at line 121 of file ImageSlice.cc.
void lsst::afw::image::operator+= | ( | image::Image< LhsPixelT > & | lhs, |
image::Image< RhsPixelT > const & | rhs | ||
) |
Add lhs to Image rhs (i.e. pixel-by-pixel addition) where types are different
Definition at line 847 of file Image.cc.
Image<PixelT>::Ptr lsst::afw::image::operator- | ( | Image< PixelT > const & | img, |
ImageSlice< PixelT > const & | slc | ||
) |
void lsst::afw::image::operator-= | ( | afwImage::Image< PixelT > & | img, |
afwImage::ImageSlice< PixelT > const & | slc | ||
) |
Overload operator-=()
Only 'image -= slice' is defined. 'slice -= image' wouldn't make sense.
img | The Image |
slc | The ImageSlice |
Definition at line 157 of file ImageSlice.cc.
void lsst::afw::image::operator-= | ( | image::Image< LhsPixelT > & | lhs, |
image::Image< RhsPixelT > const & | rhs | ||
) |
Subtract lhs from Image rhs (i.e. pixel-by-pixel subtraction) where types are different
Definition at line 854 of file Image.cc.
Image<PixelT>::Ptr lsst::afw::image::operator/ | ( | Image< PixelT > const & | img, |
ImageSlice< PixelT > const & | slc | ||
) |
void lsst::afw::image::operator/= | ( | afwImage::Image< PixelT > & | img, |
afwImage::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 240 of file ImageSlice.cc.
void lsst::afw::image::operator/= | ( | image::Image< LhsPixelT > & | lhs, |
image::Image< RhsPixelT > const & | rhs | ||
) |
Divide lhs by Image rhs (i.e. pixel-by-pixel division) where types are different
Definition at line 868 of file Image.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 86 of file ImageUtils.h.
|
inline |
Convert image position to index (nearest integer and fractional parts)
pos | image position |
Definition at line 100 of file ImageUtils.h.
boost::shared_ptr< daf::base::PropertySet > lsst::afw::image::readMetadata | ( | std::string const & | fileName, |
int | hdu = 0 , |
||
bool | strip = false |
||
) |
Return the metadata (header entries) from a FITS file.
[in] | fileName | File to read. |
[in] | hdu | HDU to read, 1-indexed. The special value of 0 will read the first non-empty HDU. |
[in] | strip | If true, ignore special header keys usually managed by cfitsio (e.g. NAXIS). |
void lsst::afw::image::swap | ( | Mask< PixelT > & | a, |
Mask< PixelT > & | b | ||
) |
void lsst::afw::image::swap | ( | ImageBase< PixelT > & | a, |
ImageBase< PixelT > & | b | ||
) |
void lsst::afw::image::swap | ( | Image< PixelT > & | a, |
Image< PixelT > & | b | ||
) |
void lsst::afw::image::swap | ( | DecoratedImage< PixelT > & | a, |
DecoratedImage< PixelT > & | b | ||
) |
Definition at line 119 of file DecoratedImage.cc.
const double lsst::afw::image::PixelZeroPos = 0.0 |
FITS uses 1.0, SDSS uses 0.5, LSST uses 0.0 (http://dev.lsstcorp.org/trac/wiki/BottomLeftPixelProposalII%3A)
position of center of pixel 0
Definition at line 42 of file ImageUtils.h.