|
LSSTApplications
10.0-2-g4f67435,11.0.rc2+1,11.0.rc2+12,11.0.rc2+3,11.0.rc2+4,11.0.rc2+5,11.0.rc2+6,11.0.rc2+7,11.0.rc2+8
LSSTDataManagementBasePackage
|
A virtual base class to evaluate image background levels. More...
#include <Background.h>
Public Types | |
| typedef float | InternalPixelT |
| type used for any internal images, and returned by getApproximate More... | |
Public Types inherited from lsst::daf::base::Citizen | |
| enum | { magicSentinel = 0xdeadbeef } |
| typedef unsigned long | memId |
| Type of the block's ID. More... | |
| typedef memId(* | memNewCallback )(const memId cid) |
| A function used to register a callback. More... | |
| typedef memId(* | memCallback )(const Citizen *ptr) |
Public Member Functions | |
| virtual void | operator+= (float const delta)=0 |
| Add a constant level to a background. More... | |
| virtual void | operator-= (float const delta)=0 |
| Subtract a constant level from a background. More... | |
| template<typename PixelT > | |
| boost::shared_ptr < lsst::afw::image::Image < PixelT > > | getImage (Interpolate::Style const interpStyle, UndersampleStyle const undersampleStyle=THROW_EXCEPTION) const |
| Method to interpolate and return the background for entire image. More... | |
| template<typename PixelT > | |
| boost::shared_ptr < lsst::afw::image::Image < PixelT > > | getImage (std::string const &interpStyle, std::string const &undersampleStyle="THROW_EXCEPTION") const |
| Method to interpolate and return the background for entire image. More... | |
| template<typename PixelT > | |
| boost::shared_ptr < lsst::afw::image::Image < PixelT > > | getImage (lsst::afw::geom::Box2I const &bbox, Interpolate::Style const interpStyle, UndersampleStyle const undersampleStyle=THROW_EXCEPTION) const |
| template<typename PixelT > | |
| boost::shared_ptr < lsst::afw::image::Image < PixelT > > | getImage (lsst::afw::geom::Box2I const &bbox, std::string const &interpStyle, std::string const &undersampleStyle="THROW_EXCEPTION") const |
| template<typename PixelT > | |
| boost::shared_ptr < lsst::afw::image::Image < PixelT > > | getImage () const |
| Method to interpolate and return the background for entire image. More... | |
| Interpolate::Style | getAsUsedInterpStyle () const |
| UndersampleStyle | getAsUsedUndersampleStyle () const |
| boost::shared_ptr < math::Approximate < InternalPixelT > > | getApproximate (ApproximateControl const &actrl, UndersampleStyle const undersampleStyle=THROW_EXCEPTION) const |
| Method to return an approximation to the background. More... | |
| geom::Box2I | getImageBBox () const |
| boost::shared_ptr < BackgroundControl > | getBackgroundControl () |
| boost::shared_ptr < BackgroundControl const > | getBackgroundControl () const |
Public Member Functions inherited from lsst::daf::base::Citizen | |
| Citizen (const std::type_info &) | |
| Citizen (Citizen const &) | |
| ~Citizen () | |
| Citizen & | operator= (Citizen const &) |
| std::string | repr () const |
| Return a string representation of a Citizen. More... | |
| void | markPersistent (void) |
| Mark a Citizen as persistent and not destroyed until process end. More... | |
| memId | getId () const |
| Return the Citizen's ID. More... | |
Protected Member Functions | |
| template<typename ImageT > | |
| Background (ImageT const &img, BackgroundControl const &bgCtrl) | |
| Constructor for Background. More... | |
| Background (geom::Box2I const imageBBox, int const nx, int const ny) | |
| virtual | ~Background () |
| dtor More... | |
Protected Attributes | |
| geom::Box2I | _imgBBox |
| size and origin of input image More... | |
| boost::shared_ptr < BackgroundControl > | _bctrl |
| control info set by user. More... | |
| Interpolate::Style | _asUsedInterpStyle |
| the style we actually used More... | |
| UndersampleStyle | _asUsedUndersampleStyle |
| the undersampleStyle we actually used More... | |
| std::vector< double > | _xcen |
| x center pix coords of sub images More... | |
| std::vector< double > | _ycen |
| y center ... More... | |
| std::vector< int > | _xorig |
| x origin pix coords of sub images More... | |
| std::vector< int > | _yorig |
| y origin ... More... | |
| std::vector< int > | _xsize |
| x size of sub images More... | |
| std::vector< int > | _ysize |
| y size ... More... | |
Private Member Functions | |
| Background (Background const &) | |
| Background & | operator= (Background const &) |
| void | _setCenOrigSize (int const width, int const height, int const nxSample, int const nySample) |
Additional Inherited Members | |
Static Public Member Functions inherited from lsst::daf::base::Citizen | |
| static bool | hasBeenCorrupted () |
| Check all allocated blocks for corruption. More... | |
| static memId | getNextMemId () |
| Return the memId of the next object to be allocated. More... | |
| static int | init () |
| Called once when the memory system is being initialised. More... | |
| static int | census (int, memId startingMemId=0) |
| How many active Citizens are there? More... | |
| static void | census (std::ostream &stream, memId startingMemId=0) |
| Print a list of all active Citizens to stream, sorted by ID. More... | |
| static const std::vector < const Citizen * > * | census () |
| Return a (newly allocated) std::vector of active Citizens sorted by ID. More... | |
| static memId | setNewCallbackId (memId id) |
| Call the NewCallback when block is allocated. More... | |
| static memId | setDeleteCallbackId (memId id) |
| Call the current DeleteCallback when block is deleted. More... | |
| static memNewCallback | setNewCallback (memNewCallback func) |
| Set the NewCallback function. More... | |
| static memCallback | setDeleteCallback (memCallback func) |
| Set the DeleteCallback function. More... | |
| static memCallback | setCorruptionCallback (memCallback func) |
| Set the CorruptionCallback function. More... | |
A virtual base class to evaluate image background levels.
Definition at line 231 of file Background.h.
| typedef float lsst.afw.math::Background::InternalPixelT |
type used for any internal images, and returned by getApproximate
Definition at line 240 of file Background.h.
|
explicitprotected |
Constructor for Background.
Estimate the statistical properties of the Image in a grid of cells; we'll later call getImage() to interpolate those values, creating an image the same size as the original
| img | ImageT (or MaskedImage) whose properties we want |
| bgCtrl | Control how the Background is estimated |
Definition at line 59 of file Background.cc.
|
explicitprotected |
Create a Background without any values in it
| imageBBox | Bounding box for image to be created by getImage() |
| nx | Number of samples in x-direction |
| ny | Number of samples in y-direction |
Definition at line 90 of file Background.cc.
|
inlineprotectedvirtual |
|
private |
|
private |
Compute the centers, origins, and sizes of the patches used to compute image statistics when estimating the Background
Definition at line 121 of file Background.cc.
|
inline |
Method to return an approximation to the background.
| actrl | Approximation style |
| undersampleStyle | Behaviour if there are too few points |
Definition at line 314 of file Background.h.
|
inline |
Return the Interpolate::Style that we actually used in the last call to getImage()
N.b. Interpolate can fallback to a lower order if there aren't enough samples
Definition at line 302 of file Background.h.
|
inline |
Return the UndersampleStyle that we actually used in the last call to getImage()
Definition at line 308 of file Background.h.
|
inline |
Definition at line 326 of file Background.h.
|
inline |
Definition at line 327 of file Background.h.
|
inline |
Method to interpolate and return the background for entire image.
| interpStyle | Style of the interpolation |
| undersampleStyle | Behaviour if there are too few points |
Definition at line 252 of file Background.h.
|
inline |
Method to interpolate and return the background for entire image.
| interpStyle | Style of the interpolation |
| undersampleStyle | Behaviour if there are too few points |
Definition at line 264 of file Background.h.
|
inline |
| bbox | Bounding box for sub-image |
| interpStyle | Style of the interpolation |
| undersampleStyle | Behaviour if there are too few points |
Definition at line 272 of file Background.h.
|
inline |
| bbox | Bounding box for sub-image |
| interpStyle | Style of the interpolation |
| undersampleStyle | Behaviour if there are too few points |
Definition at line 280 of file Background.h.
|
inline |
Method to interpolate and return the background for entire image.
Definition at line 294 of file Background.h.
|
inline |
Return the input image's (PARENT) bounding box
Definition at line 324 of file Background.h.
|
pure virtual |
Add a constant level to a background.
Implemented in lsst.afw.math::BackgroundMI.
|
pure virtual |
Subtract a constant level from a background.
Implemented in lsst.afw.math::BackgroundMI.
|
private |
|
mutableprotected |
the style we actually used
Definition at line 332 of file Background.h.
|
mutableprotected |
the undersampleStyle we actually used
Definition at line 333 of file Background.h.
|
protected |
control info set by user.
Definition at line 331 of file Background.h.
|
protected |
size and origin of input image
Definition at line 330 of file Background.h.
|
protected |
x center pix coords of sub images
Definition at line 335 of file Background.h.
|
protected |
x origin pix coords of sub images
Definition at line 337 of file Background.h.
|
protected |
x size of sub images
Definition at line 339 of file Background.h.
|
protected |
y center ...
Definition at line 336 of file Background.h.
|
protected |
y origin ...
Definition at line 338 of file Background.h.
|
protected |
y size ...
Definition at line 340 of file Background.h.
1.8.5