File PixelRegion.h

namespace lsst

Class for a simple mapping implementing a generic AstrometryTransform.

Remove all non-astronomical counts from the Chunk Exposure’s pixels.

Forward declarations for lsst::utils::Cache

For details on the Cache class, see the Cache.h file.

It uses a template rather than a pointer so that the derived classes can use the specifics of the transform. The class simplePolyMapping overloads a few routines.

A base class for image defects

Numeric constants used by the Integrate.h integrator routines.

Compute Image Statistics

Note

Gauss-Kronrod-Patterson quadrature coefficients for use in quadpack routine qng. These coefficients were calculated with 101 decimal digit arithmetic by L. W. Fullerton, Bell Labs, Nov 1981.

Note

The Statistics class itself can only handle lsst::afw::image::MaskedImage() types. The philosophy has been to handle other types by making them look like lsst::afw::image::MaskedImage() and reusing that code. Users should have no need to instantiate a Statistics object directly, but should use the overloaded makeStatistics() factory functions.

namespace afw
namespace geom
namespace ellipses
class PixelRegion
#include <PixelRegion.h>

A pixelized region containing all pixels whose centers are within an Ellipse.

The pixel region for an ellipse may be larger or smaller in area than the ellipse itself, depending on the details of where pixel centers land, and it may be empty even if the area of the ellipse is nonzero.

Unnamed Group

PixelRegion(PixelRegion const&)

PixelRegion is copy and move constructable and assignable.

PixelRegion(PixelRegion&&)
PixelRegion &operator=(PixelRegion const&)
PixelRegion &operator=(PixelRegion&&)
~PixelRegion()

Unnamed Group

Iterator begin() const

Iterator range over Spans whose pixels are within the Ellipse.

Iterator end() const

Public Types

using Iterator = std::vector<Span>::const_iterator

Iterator type used by begin() and end().

Public Functions

PixelRegion(Ellipse const &ellipse)

Construct a PixelRegion from an Ellipse.

lsst::geom::Box2I const &getBBox() const

Return the bounding box of the pixel region.

This is guaranteed to be the smallest box that includes all Spans. It has no guaranteed relationship with the Ellipse’s direct (floating-point) bounding box as computed by Ellipse::computeBBox(), and may be empty even if the Ellipse’s bounding box is not.

Span const getSpanAt(int y) const

Return the span at the given y coordinate value.

Exceptions
  • lsst::pex::exceptions::OutOfRangeError: Thrown if y is not within the y bounds of getBBox().

Private Members

std::vector<Span> _spans
lsst::geom::Box2I _bbox