|
lsst.afw
13.0-94-ga1c444047
|
Represent a 2-dimensional array of bitmask pixels. More...
#include <Mask.h>
Classes | |
| struct | ImageTypeFactory |
| A templated class to return this classes' type (present in Image/Mask/MaskedImage) More... | |
Public Types | |
| typedef detail::MaskPlaneDict | MaskPlaneDict |
| typedef detail::Mask_tag | image_category |
Public Types inherited from lsst::afw::image::ImageBase< MaskPixelT > | |
| typedef detail::basic_tag | image_category |
| trait class to identify type of image More... | |
| typedef MaskPixelT | SinglePixel |
| A single Pixel of the same type as those in the ImageBase. More... | |
| typedef MaskPixelT | Pixel |
| A pixel in this ImageBase. More... | |
| typedef Reference< MaskPixelT >::type | PixelReference |
| A Reference to a PixelT. More... | |
| typedef ConstReference< MaskPixelT >::type | PixelConstReference |
| A ConstReference to a PixelT. More... | |
| typedef _view_t::xy_locator | xy_locator |
| An xy_locator. More... | |
| typedef _view_t::xy_locator::const_t | const_xy_locator |
| A const_xy_locator. More... | |
| typedef _view_t::iterator | iterator |
| An STL compliant iterator. More... | |
| typedef _const_view_t::iterator | const_iterator |
| An STL compliant const iterator. More... | |
| typedef _view_t::reverse_iterator | reverse_iterator |
| An STL compliant reverse iterator. More... | |
| typedef _const_view_t::reverse_iterator | const_reverse_iterator |
| An STL compliant const reverse iterator. More... | |
| typedef _view_t::x_iterator | x_iterator |
| An iterator for traversing the pixels in a row. More... | |
| typedef x_iterator | fast_iterator |
| A fast STL compliant iterator for contiguous images N.b. More... | |
| typedef _view_t::x_iterator | xy_x_iterator |
| An iterator for traversing the pixels in a row, created from an xy_locator. More... | |
| typedef _const_view_t::x_iterator | const_x_iterator |
| A const iterator for traversing the pixels in a row. More... | |
| typedef _view_t::y_iterator | y_iterator |
| An iterator for traversing the pixels in a column. More... | |
| typedef _view_t::y_iterator | xy_y_iterator |
| An iterator for traversing the pixels in a row, created from an xy_locator. More... | |
| typedef _const_view_t::y_iterator | const_y_iterator |
| A const iterator for traversing the pixels in a column. More... | |
| typedef ndarray::Array< MaskPixelT, 2, 1 > | Array |
| A mutable ndarray representation of the image. More... | |
| typedef ndarray::Array< MaskPixelT const, 2, 1 > | ConstArray |
| An immutable ndarray representation of the image. More... | |
Public Member Functions | |
| Mask (unsigned int width, unsigned int height, MaskPlaneDict const &planeDefs=MaskPlaneDict()) | |
| Construct a Mask initialized to 0x0. More... | |
| Mask (unsigned int width, unsigned int height, MaskPixelT initialValue, MaskPlaneDict const &planeDefs=MaskPlaneDict()) | |
| Construct a Mask initialized to a specified value. More... | |
| Mask (geom::Extent2I const &dimensions=geom::Extent2I(), MaskPlaneDict const &planeDefs=MaskPlaneDict()) | |
| Construct a Mask initialized to 0x0. More... | |
| Mask (geom::Extent2I const &dimensions, MaskPixelT initialValue, MaskPlaneDict const &planeDefs=MaskPlaneDict()) | |
| Construct a Mask initialized to a specified value. More... | |
| Mask (geom::Box2I const &bbox, MaskPlaneDict const &planeDefs=MaskPlaneDict()) | |
| Construct a Mask initialized to 0x0. More... | |
| Mask (geom::Box2I const &bbox, MaskPixelT initialValue, MaskPlaneDict const &planeDefs=MaskPlaneDict()) | |
| Construct a Mask initialized to a specified value. More... | |
| Mask (std::string const &fileName, int hdu=INT_MIN, std::shared_ptr< lsst::daf::base::PropertySet > metadata=std::shared_ptr< lsst::daf::base::PropertySet >(), geom::Box2I const &bbox=geom::Box2I(), ImageOrigin origin=PARENT, bool conformMasks=false) | |
| Construct a Mask by reading a regular FITS file. More... | |
| Mask (fits::MemFileManager &manager, int hdu=INT_MIN, std::shared_ptr< lsst::daf::base::PropertySet > metadata=std::shared_ptr< lsst::daf::base::PropertySet >(), geom::Box2I const &bbox=geom::Box2I(), ImageOrigin origin=PARENT, bool conformMasks=false) | |
| Construct a Mask by reading a FITS image in memory. More... | |
| Mask (fits::Fits &fitsfile, std::shared_ptr< lsst::daf::base::PropertySet > metadata=std::shared_ptr< lsst::daf::base::PropertySet >(), geom::Box2I const &bbox=geom::Box2I(), ImageOrigin origin=PARENT, bool conformMasks=false) | |
| Construct a Mask from an already-open FITS object. More... | |
| template<typename OtherPixelT > | |
| Mask (Mask< OtherPixelT > const &rhs, const bool deep) | |
| Mask (const Mask &src, const bool deep=false) | |
| Construct a Mask from another Mask. More... | |
| Mask (const Mask &src, const geom::Box2I &bbox, ImageOrigin const origin=PARENT, const bool deep=false) | |
| Construct a Mask from a subregion of another Mask. More... | |
| Mask (ndarray::Array< MaskPixelT, 2, 1 > const &array, bool deep=false, geom::Point2I const &xy0=geom::Point2I()) | |
| void | swap (Mask &rhs) |
| Mask & | operator= (MaskPixelT const rhs) |
| Mask & | operator= (const Mask &rhs) |
| Mask & | operator|= (Mask const &rhs) |
| OR a Mask into a Mask. More... | |
| Mask & | operator|= (MaskPixelT const rhs) |
| OR a bitmask into a Mask. More... | |
| Mask & | operator &= (Mask const &rhs) |
| AND a Mask into a Mask. More... | |
| Mask & | operator &= (MaskPixelT const rhs) |
| AND a bitmask into a Mask. More... | |
| Mask & | operator^= (Mask const &rhs) |
| XOR a Mask into a Mask. More... | |
| Mask & | operator^= (MaskPixelT const rhs) |
| XOR a bitmask into a Mask. More... | |
| ImageBase< MaskPixelT >::PixelReference | operator() (int x, int y) |
| get a reference to the specified pixel More... | |
| ImageBase< MaskPixelT >::PixelConstReference | operator() (int x, int y) const |
| get the specified pixel (const version) More... | |
| bool | operator() (int x, int y, int plane) const |
| is the specified mask plane set in the specified pixel? More... | |
| ImageBase< MaskPixelT >::PixelReference | operator() (int x, int y, CheckIndices const &check) |
| get a reference to the specified pixel checking array bounds More... | |
| ImageBase< MaskPixelT >::PixelConstReference | operator() (int x, int y, CheckIndices const &check) const |
| get the specified pixel with array checking (const version) More... | |
| bool | operator() (int x, int y, int plane, CheckIndices const &check) const |
| is the specified mask plane set in the specified pixel, checking array bounds? More... | |
| void | writeFits (std::string const &fileName, std::shared_ptr< lsst::daf::base::PropertySet const > metadata=std::shared_ptr< lsst::daf::base::PropertySet >(), std::string const &mode="w") const |
| Write a mask to a regular FITS file. More... | |
| void | writeFits (fits::MemFileManager &manager, std::shared_ptr< lsst::daf::base::PropertySet const > metadata=std::shared_ptr< lsst::daf::base::PropertySet >(), std::string const &mode="w") const |
| Write a mask to a FITS RAM file. More... | |
| void | writeFits (fits::Fits &fitsfile, std::shared_ptr< lsst::daf::base::PropertySet const > metadata=std::shared_ptr< lsst::daf::base::PropertySet const >()) const |
| Write a mask to an open FITS file object. More... | |
| std::string | getAsString (int x, int y) |
| void | clearAllMaskPlanes () |
| Clear all the pixels. More... | |
| void | clearMaskPlane (int plane) |
| Clear the specified bit in all pixels. More... | |
| void | setMaskPlaneValues (const int plane, const int x0, const int x1, const int y) |
| Set the bit specified by "planeId" for pixels (x0, y) ... More... | |
| void | removeAndClearMaskPlane (const std::string &name, bool const removeFromDefault=false) |
| Clear all pixels of the specified mask and remove the plane from the mask plane dictionary; optionally remove the plane from the default dictionary too. More... | |
| MaskPlaneDict const & | getMaskPlaneDict () const |
| Return the Mask's maskPlaneDict. More... | |
| void | printMaskPlanes () const |
| print the mask plane dictionary to std::cout More... | |
| void | conformMaskPlanes (const MaskPlaneDict &masterPlaneDict) |
| Adjust this mask to conform to the standard Mask class's mask plane dictionary, adding any new mask planes to the standard. More... | |
Public Member Functions inherited from lsst::afw::image::ImageBase< MaskPixelT > | |
| ImageBase (const geom::Extent2I &dimensions=geom::Extent2I()) | |
| Allocator Constructor. More... | |
| ImageBase (const geom::Box2I &bbox) | |
| Allocator Constructor. More... | |
| ImageBase (const ImageBase &src, const bool deep=false) | |
| Copy constructor. More... | |
| ImageBase (const ImageBase &src, const geom::Box2I &bbox, const ImageOrigin origin=PARENT, const bool deep=false) | |
| Copy constructor to make a copy of part of an image. More... | |
| ImageBase (const ImageBase< OtherPixelT > &rhs, const bool deep) | |
| generalised copy constructor More... | |
| ImageBase (Array const &array, bool deep=false, geom::Point2I const &xy0=geom::Point2I()) | |
| Construction from ndarray::Array and NumPy. More... | |
| virtual | ~ImageBase () |
| ImageBase & | operator= (const ImageBase &rhs) |
| Shallow assignment operator. More... | |
| ImageBase & | operator= (const MaskPixelT rhs) |
| Set the image's pixels to rhs. More... | |
| ImageBase & | operator<<= (const ImageBase &rhs) |
| Set the lhs's pixel values to equal the rhs's. More... | |
| void | assign (ImageBase const &rhs, geom::Box2I const &bbox=geom::Box2I(), ImageOrigin origin=PARENT) |
| Copy pixels from another image to a specified subregion of this image. More... | |
| PixelReference | operator() (int x, int y) |
Return a reference to the pixel (x, y) More... | |
| PixelReference | operator() (int x, int y, CheckIndices const &) |
Return a reference to the pixel (x, y) with bounds checking. More... | |
| PixelConstReference | operator() (int x, int y) const |
Return a const reference to the pixel (x, y) More... | |
| PixelConstReference | operator() (int x, int y, CheckIndices const &) const |
Return a const reference to the pixel (x, y) with bounds checking. More... | |
| PixelConstReference | get0 (int x, int y) const |
| PixelConstReference | get0 (int x, int y, CheckIndices const &check) const |
| void | set0 (int x, int y, const MaskPixelT v) |
| void | set0 (int x, int y, const MaskPixelT v, CheckIndices const &check) |
| 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... | |
| geom::Point2I | getXY0 () const |
| Return the image's origin. More... | |
| std::pair< int, double > | positionToIndex (double const pos, lsst::afw::image::xOrY const xy) const |
| Convert image position to index (nearest integer and fractional parts) More... | |
| double | indexToPosition (double ind, lsst::afw::image::xOrY const xy) const |
| Convert image index to image position. More... | |
| geom::Extent2I | getDimensions () const |
| Return the image's size; useful for passing to constructors. More... | |
| void | swap (ImageBase &rhs) |
| Array | getArray () |
| ConstArray | getArray () const |
| iterator | begin () const |
| Return an STL compliant iterator to the start of the image. More... | |
| fast_iterator | begin (bool) const |
| Return a fast STL compliant iterator to the start of the image which must be contiguous. More... | |
| iterator | end () const |
| Return an STL compliant iterator to the end of the image. More... | |
| fast_iterator | end (bool) const |
| Return a fast STL compliant iterator to the end of the image which must be contiguous. More... | |
| reverse_iterator | rbegin () const |
| Return an STL compliant reverse iterator to the start of the image. More... | |
| reverse_iterator | rend () const |
| Return an STL compliant reverse iterator to the end of the image. More... | |
| iterator | at (int x, int y) const |
Return an STL compliant iterator at the point (x, y) More... | |
| x_iterator | row_begin (int y) const |
Return an x_iterator to the start of the y'th row. More... | |
| x_iterator | row_end (int y) const |
Return an x_iterator to the end of the y'th row. More... | |
| x_iterator | x_at (int x, int y) const |
Return an x_iterator to the point (x, y) in the image. More... | |
| y_iterator | col_begin (int x) const |
Return an y_iterator to the start of the y'th row. More... | |
| y_iterator | col_end (int x) const |
Return an y_iterator to the start of the y'th row. More... | |
| y_iterator | y_at (int x, int y) const |
Return an y_iterator to the point (x, y) in the image. More... | |
| xy_locator | xy_at (int x, int y) const |
Return an xy_locator at the point (x, y) in the image. More... | |
| void | setXY0 (geom::Point2I const origin) |
| Set the ImageBase's origin. More... | |
| void | setXY0 (int const x0, int const y0) |
| Set the ImageBase's origin. More... | |
| geom::Box2I | getBBox (ImageOrigin origin=PARENT) const |
Static Public Member Functions | |
| static MaskPixelT | getPlaneBitMask (const std::vector< std::string > &names) |
| Return the bitmask corresponding to a vector of plane names OR'd together. More... | |
| static Mask | readFits (std::string const &filename, int hdu=INT_MIN) |
| Read a Mask from a regular FITS file. More... | |
| static Mask | readFits (fits::MemFileManager &manager, int hdu=INT_MIN) |
| Read a Mask from a FITS RAM file. More... | |
| static std::string | interpret (MaskPixelT value) |
| Interpret a mask value as a comma-separated list of mask plane names. More... | |
| static MaskPlaneDict | parseMaskPlaneMetadata (std::shared_ptr< lsst::daf::base::PropertySet const > metadata) |
| Given a PropertySet that contains the MaskPlane assignments, setup the MaskPlanes. More... | |
| static void | clearMaskPlaneDict () |
| Reset the maskPlane dictionary. More... | |
| static int | addMaskPlane (const std::string &name) |
| static void | removeMaskPlane (const std::string &name) |
| static int | getMaskPlane (const std::string &name) |
| Return the mask plane number corresponding to a plane name. More... | |
| static MaskPixelT | getPlaneBitMask (const std::string &name) |
| Return the bitmask corresponding to a plane name. More... | |
| static int | getNumPlanesMax () |
| static int | getNumPlanesUsed () |
| static void | addMaskPlanesToMetadata (std::shared_ptr< lsst::daf::base::PropertySet >) |
| Given a PropertySet, replace any existing MaskPlane assignments with the current ones. More... | |
Static Public Member Functions inherited from lsst::afw::image::ImageBase< MaskPixelT > | |
| static SinglePixel | PixelCast (SinglePixelT rhs) |
| Convert a type to our SinglePixel type. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from lsst::afw::image::ImageBase< MaskPixelT > | |
| _view_t | _getRawView () const |
| bool | isContiguous () const |
Static Protected Member Functions inherited from lsst::afw::image::ImageBase< MaskPixelT > | |
| static _view_t | _allocateView (geom::Extent2I const &dimensions, Manager::Ptr &manager) |
| static _view_t | _makeSubView (geom::Extent2I const &dimensions, geom::Extent2I const &offset, const _view_t &view) |
Represent a 2-dimensional array of bitmask pixels.
Some mask planes are always defined (although you can add more with Mask::addMaskPlane):
BAD This pixel is known to be bad (e.g. the amplifier is not working)CR This pixel is contaminated by a cosmic rayDETECTED This pixel lies within an object's FootprintDETECTED_NEGATIVE This pixel lies within an object's Footprint, and the detection was looking for pixels below a specified levelEDGE This pixel is too close to the edge to be processed properlyINTRP This pixel has been interpolated over INTERPOLATEDSAT This pixel is saturated and has bloomed SATURATEDSUSPECT This pixel is untrustworthy, and you may wish to discard any Source containing it | typedef detail::Mask_tag lsst::afw::image::Mask< MaskPixelT >::image_category |
| typedef detail::MaskPlaneDict lsst::afw::image::Mask< MaskPixelT >::MaskPlaneDict |
|
explicit |
|
explicit |
|
explicit |
|
explicit |
|
explicit |
|
explicit |
|
explicit |
Construct a Mask by reading a regular FITS file.
| [in] | fileName | File to read. |
| [in] | hdu | HDU to read, 0-indexed (i.e. 0=Primary HDU). The special value of INT_MIN reads the Primary HDU unless it is empty, in which case it reads the first extension HDU. |
| [in,out] | metadata | Metadata read from the header (may be null). |
| [in] | bbox | If non-empty, read only the pixels within the bounding box. |
| [in] | origin | Coordinate system of the bounding box; if PARENT, the bounding box should take into account the xy0 saved with the image. |
| [in] | conformMasks | If true, make Mask conform to the mask layout in the file. |
The meaning of the bitplanes is given in the header. If conformMasks is false (default), the bitvalues will be changed to match those in Mask's plane dictionary. If it's true, the bitvalues will be left alone, but Mask's dictionary will be modified to match the on-disk version.
|
explicit |
Construct a Mask by reading a FITS image in memory.
| [in] | manager | An object that manages the memory buffer to read. |
| [in] | hdu | HDU to read, 0-indexed (i.e. 0=Primary HDU). The special value of INT_MIN reads the Primary HDU unless it is empty, in which case it reads the first extension HDU. |
| [in,out] | metadata | Metadata read from the header (may be null). |
| [in] | bbox | If non-empty, read only the pixels within the bounding box. |
| [in] | origin | Coordinate system of the bounding box; if PARENT, the bounding box should take into account the xy0 saved with the image. |
| [in] | conformMasks | If true, make Mask conform to the mask layout in the file. |
The meaning of the bitplanes is given in the header. If conformMasks is false (default), the bitvalues will be changed to match those in Mask's plane dictionary. If it's true, the bitvalues will be left alone, but Mask's dictionary will be modified to match the on-disk version.
|
explicit |
Construct a Mask from an already-open FITS object.
| [in] | fitsfile | A FITS object to read from, already at the desired HDU. |
| [in,out] | metadata | Metadata read from the header (may be null). |
| [in] | bbox | If non-empty, read only the pixels within the bounding box. |
| [in] | origin | Coordinate system of the bounding box; if PARENT, the bounding box should take into account the xy0 saved with the image. |
| [in] | conformMasks | If true, make Mask conform to the mask layout in the file. |
The meaning of the bitplanes is given in the header. If conformMasks is false (default), the bitvalues will be changed to match those in Mask's plane dictionary. If it's true, the bitvalues will be left alone, but Mask's dictionary will be modified to match the on-disk version.
|
inline |
| lsst::afw::image::Mask< MaskPixelT >::Mask | ( | const Mask< MaskPixelT > & | src, |
| const bool | deep = false |
||
| ) |
| lsst::afw::image::Mask< MaskPixelT >::Mask | ( | const Mask< MaskPixelT > & | src, |
| const geom::Box2I & | bbox, | ||
| ImageOrigin const | origin = PARENT, |
||
| const bool | deep = false |
||
| ) |
|
explicit |
|
static |
|
static |
| void lsst::afw::image::Mask< MaskPixelT >::clearAllMaskPlanes | ( | ) |
| void lsst::afw::image::Mask< MaskPixelT >::clearMaskPlane | ( | int | plane | ) |
|
static |
| void lsst::afw::image::Mask< MaskPixelT >::conformMaskPlanes | ( | const MaskPlaneDict & | masterPlaneDict | ) |
Adjust this mask to conform to the standard Mask class's mask plane dictionary, adding any new mask planes to the standard.
Ensures that this mask (presumably from some external source) has the same plane assignments as the Mask class. If a change in plane assignments is needed, the bits within each pixel are permuted as required. The provided masterPlaneDict describes the true state of the bits in this Mask's pixels and overrides its current MaskDict
Any new mask planes found in this mask are added to unused slots in the Mask class's mask plane dictionary.
| masterPlaneDict | mask plane dictionary currently in use for this mask |
|
inline |
|
static |
| detail::MaskPlaneDict const & lsst::afw::image::Mask< MaskPixelT >::getMaskPlaneDict | ( | ) | const |
|
inlinestatic |
|
static |
|
static |
|
static |
|
static |
| Mask& lsst::afw::image::Mask< MaskPixelT >::operator&= | ( | Mask< MaskPixelT > const & | rhs | ) |
| Mask& lsst::afw::image::Mask< MaskPixelT >::operator&= | ( | MaskPixelT const | rhs | ) |
AND a bitmask into a Mask.
| ImageBase< MaskPixelT >::PixelReference lsst::afw::image::Mask< MaskPixelT >::operator() | ( | int | x, |
| int | y | ||
| ) |
| ImageBase< MaskPixelT >::PixelConstReference lsst::afw::image::Mask< MaskPixelT >::operator() | ( | int | x, |
| int | y | ||
| ) | const |
| bool lsst::afw::image::Mask< MaskPixelT >::operator() | ( | int | x, |
| int | y, | ||
| int | plane | ||
| ) | const |
| ImageBase< MaskPixelT >::PixelReference lsst::afw::image::Mask< MaskPixelT >::operator() | ( | int | x, |
| int | y, | ||
| CheckIndices const & | check | ||
| ) |
| ImageBase< MaskPixelT >::PixelConstReference lsst::afw::image::Mask< MaskPixelT >::operator() | ( | int | x, |
| int | y, | ||
| CheckIndices const & | check | ||
| ) | const |
| bool lsst::afw::image::Mask< MaskPixelT >::operator() | ( | int | x, |
| int | y, | ||
| int | plane, | ||
| CheckIndices const & | check | ||
| ) | const |
| Mask< MaskPixelT > & lsst::afw::image::Mask< MaskPixelT >::operator= | ( | MaskPixelT const | rhs | ) |
| Mask< MaskPixelT > & lsst::afw::image::Mask< MaskPixelT >::operator= | ( | const Mask< MaskPixelT > & | rhs | ) |
| Mask< MaskPixelT > & lsst::afw::image::Mask< MaskPixelT >::operator^= | ( | Mask< MaskPixelT > const & | rhs | ) |
| Mask< MaskPixelT > & lsst::afw::image::Mask< MaskPixelT >::operator^= | ( | MaskPixelT const | rhs | ) |
| Mask< MaskPixelT > & lsst::afw::image::Mask< MaskPixelT >::operator|= | ( | Mask< MaskPixelT > const & | rhs | ) |
| Mask< MaskPixelT > & lsst::afw::image::Mask< MaskPixelT >::operator|= | ( | MaskPixelT const | rhs | ) |
|
static |
| void lsst::afw::image::Mask< MaskPixelT >::printMaskPlanes | ( | ) | const |
|
inlinestatic |
|
inlinestatic |
| void lsst::afw::image::Mask< MaskPixelT >::removeAndClearMaskPlane | ( | const std::string & | name, |
| bool const | removeFromDefault = false |
||
| ) |
Clear all pixels of the specified mask and remove the plane from the mask plane dictionary; optionally remove the plane from the default dictionary too.
| name | of maskplane |
| removeFromDefault | remove from default mask plane dictionary too |
| lsst::pex::exceptions::InvalidParameterError | if plane is invalid |
|
static |
| void lsst::afw::image::Mask< MaskPixelT >::setMaskPlaneValues | ( | const int | plane, |
| const int | x0, | ||
| const int | x1, | ||
| const int | y | ||
| ) |
| void lsst::afw::image::Mask< PixelT >::swap | ( | Mask< MaskPixelT > & | rhs | ) |
| void lsst::afw::image::Mask< MaskPixelT >::writeFits | ( | std::string const & | fileName, |
| std::shared_ptr< lsst::daf::base::PropertySet const > | metadata = std::shared_ptr< lsst::daf::base::PropertySet >(), |
||
| std::string const & | mode = "w" |
||
| ) | const |
Write a mask to a regular FITS file.
| [in] | fileName | Name of the file to write. |
| [in] | metadata | Additional values to write to the header (may be null). |
| [in] | mode | "w"=Create a new file; "a"=Append a new HDU. |
| void lsst::afw::image::Mask< MaskPixelT >::writeFits | ( | fits::MemFileManager & | manager, |
| std::shared_ptr< lsst::daf::base::PropertySet const > | metadata = std::shared_ptr< lsst::daf::base::PropertySet >(), |
||
| std::string const & | mode = "w" |
||
| ) | const |
Write a mask to a FITS RAM file.
| [in] | manager | Manager object for the memory block to write to. |
| [in] | metadata | Additional values to write to the header (may be null). |
| [in] | mode | "w"=Create a new file; "a"=Append a new HDU. |
| void lsst::afw::image::Mask< MaskPixelT >::writeFits | ( | fits::Fits & | fitsfile, |
| std::shared_ptr< lsst::daf::base::PropertySet const > | metadata = std::shared_ptr< lsst::daf::base::PropertySet const >() |
||
| ) | const |
Write a mask to an open FITS file object.
| [in] | fitsfile | A FITS file already open to the desired HDU. |
| [in] | metadata | Additional values to write to the header (may be null). |
1.8.13