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
|
A container for an Image and its associated metadata. More...
#include <Image.h>
Public Types | |
typedef boost::shared_ptr < DecoratedImage > | Ptr |
shared_ptr to a DecoratedImage More... | |
typedef boost::shared_ptr < const DecoratedImage > | ConstPtr |
shared_ptr to a const DecoratedImage More... | |
typedef boost::shared_ptr < Image< PixelT > > | ImagePtr |
shared_ptr to the Image More... | |
typedef boost::shared_ptr < Image< PixelT > const > | ImageConstPtr |
shared_ptr to the Image as const More... | |
Public Types inherited from lsst::daf::base::Persistable | |
typedef boost::shared_ptr < Persistable > | Ptr |
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 | |
DecoratedImage (const geom::Extent2I &dimensions=geom::Extent2I()) | |
Create an image of the specified size. More... | |
DecoratedImage (const geom::Box2I &bbox) | |
DecoratedImage (boost::shared_ptr< Image< PixelT > > rhs) | |
DecoratedImage (DecoratedImage const &rhs, const bool deep=false) | |
DecoratedImage (std::string const &fileName, const int hdu=0, geom::Box2I const &bbox=geom::Box2I(), ImageOrigin const origin=PARENT) | |
DecoratedImage & | operator= (const DecoratedImage &image) |
boost::shared_ptr < lsst::daf::base::PropertySet > | getMetadata () const |
void | setMetadata (boost::shared_ptr< lsst::daf::base::PropertySet > metadata) |
int | getWidth () const |
Return the number of columns in the image. More... | |
int | getHeight () const |
Return the number of rows in the image. More... | |
int | getX0 () const |
Return the image's column-origin. More... | |
int | getY0 () const |
Return the image's row-origin. More... | |
const geom::Extent2I | getDimensions () const |
Return the image's size; useful for passing to constructors. More... | |
void | swap (DecoratedImage &rhs) |
void | writeFits (std::string const &fileName, boost::shared_ptr< lsst::daf::base::PropertySet const > metadata=boost::shared_ptr< lsst::daf::base::PropertySet const >(), std::string const &mode="w") const |
ImagePtr | getImage () |
Return a shared_ptr to the DecoratedImage's Image. More... | |
ImageConstPtr | getImage () const |
Return a shared_ptr to the DecoratedImage's Image as const. More... | |
double | getGain () const |
void | setGain (double gain) |
Set the DecoratedImage's gain. More... | |
Public Member Functions inherited from lsst::daf::base::Persistable | |
Persistable (void) | |
virtual | ~Persistable (void) |
template<class Archive > | |
void | serialize (Archive &, unsigned int 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... | |
Private Member Functions | |
void | init () |
Private Attributes | |
boost::shared_ptr< Image < PixelT > > | _image |
boost::shared_ptr < lsst::daf::base::PropertySet > | _metadata |
double | _gain |
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 container for an Image and its associated metadata.
typedef boost::shared_ptr<const DecoratedImage> lsst::afw::image::DecoratedImage< PixelT >::ConstPtr |
typedef boost::shared_ptr< Image<PixelT> const> lsst::afw::image::DecoratedImage< PixelT >::ImageConstPtr |
typedef boost::shared_ptr< Image<PixelT> > lsst::afw::image::DecoratedImage< PixelT >::ImagePtr |
typedef boost::shared_ptr<DecoratedImage> lsst::afw::image::DecoratedImage< PixelT >::Ptr |
|
explicit |
Create an image of the specified size.
dimensions | desired number of columns. rows |
Definition at line 46 of file DecoratedImage.cc.
|
explicit |
Create an image of the specified size
dimensions
member which may be conveniently used to make objects of an appropriate size Definition at line 60 of file DecoratedImage.cc.
|
explicit |
Create a DecoratedImage wrapping rhs
Note that this ctor shares pixels with the rhs; it isn't a deep copy
rhs | Image to go into DecoratedImage |
Definition at line 74 of file DecoratedImage.cc.
lsst::afw::image::DecoratedImage< PixelT >::DecoratedImage | ( | DecoratedImage< PixelT > const & | rhs, |
const bool | deep = false |
||
) |
Copy constructor
Note that the lhs will share memory with the rhs unless deep
is true
rhs | right hand side |
deep | Make deep copy? |
Definition at line 88 of file DecoratedImage.cc.
|
explicit |
Create a DecoratedImage from a FITS file
< HDU within the file
fileName | File to read |
hdu | The HDU to read |
bbox | Only read these pixels |
origin | Coordinate system of the bbox |
Definition at line 139 of file DecoratedImage.cc.
|
inline |
Return the image's size; useful for passing to constructors.
Definition at line 653 of file Image.h.
|
inline |
|
inline |
Return the number of rows in the image.
Definition at line 645 of file Image.h.
|
inline |
Return a shared_ptr to the DecoratedImage's Image.
Definition at line 664 of file Image.h.
|
inline |
Return a shared_ptr to the DecoratedImage's Image as const.
Definition at line 666 of file Image.h.
|
inline |
Definition at line 639 of file Image.h.
|
inline |
Return the number of columns in the image.
Definition at line 643 of file Image.h.
|
inline |
Return the image's column-origin.
Definition at line 648 of file Image.h.
|
inline |
Return the image's row-origin.
Definition at line 650 of file Image.h.
|
private |
Definition at line 37 of file DecoratedImage.cc.
image::DecoratedImage< PixelT > & lsst::afw::image::DecoratedImage< PixelT >::operator= | ( | const DecoratedImage< PixelT > & | src | ) |
Assignment operator
N.b. this is a shallow assignment; use operator<<=() if you want to copy the pixels
Definition at line 103 of file DecoratedImage.cc.
|
inline |
|
inline |
Definition at line 640 of file Image.h.
void lsst::afw::image::DecoratedImage< PixelT >::swap | ( | DecoratedImage< PixelT > & | rhs | ) |
Definition at line 111 of file DecoratedImage.cc.
void lsst::afw::image::DecoratedImage< PixelT >::writeFits | ( | std::string const & | fileName, |
boost::shared_ptr< lsst::daf::base::PropertySet const > | metadata = boost::shared_ptr< lsst::daf::base::PropertySet const>() , |
||
std::string const & | mode = "w" |
||
) | const |
Write a FITS file
Definition at line 155 of file DecoratedImage.cc.
|
private |
|
private |
|
private |