|
lsst.afw
13.0-94-ga1c444047
|
A BoundedField based on geom::Transform<Poin2Endpoint, GenericEndpoint<1>>. More...
#include <TransformBoundedField.h>
Public Types | |
| using | Transform = geom::Transform< geom::Point2Endpoint, geom::GenericEndpoint > |
Public Member Functions | |
| TransformBoundedField (geom::Box2I const &bbox, Transform const &transform) | |
| Create a TransformBoundedField from a bounding box and transform. More... | |
| ~TransformBoundedField () | |
| TransformBoundedField (TransformBoundedField const &)=default | |
| TransformBoundedField (TransformBoundedField &&)=default | |
| TransformBoundedField & | operator= (TransformBoundedField const &)=delete |
| TransformBoundedField & | operator= (TransformBoundedField &&)=delete |
| Transform | getTransform () const |
| Get the contained Transform. More... | |
| double | evaluate (geom::Point2D const &position) const override |
| Evaluate the field at the given point. More... | |
| ndarray::Array< double, 1, 1 > | evaluate (ndarray::Array< double const, 1 > const &x, ndarray::Array< double const, 1 > const &y) const override |
| Evaluate the field at the given point. More... | |
| bool | isPersistable () const override |
| TransformBoundedField is always persistable. More... | |
| std::shared_ptr< BoundedField > | operator* (double const scale) const override |
| Return a scaled BoundedField. More... | |
| bool | operator== (BoundedField const &rhs) const override |
| BoundedFields (of the same sublcass) are equal if their bounding boxes and parameters are equal. More... | |
Public Member Functions inherited from lsst::afw::math::BoundedField | |
| double | evaluate (double x, double y) const |
| Evaluate the field at the given point. More... | |
| virtual double | integrate () const |
| Compute the integral of this function over its bounding-box. More... | |
| virtual double | mean () const |
| Compute the mean of this function over its bounding-box. More... | |
| geom::Box2I | getBBox () const |
| Return the bounding box that defines the region where the field is valid. More... | |
| template<typename T > | |
| void | fillImage (image::Image< T > &image, bool overlapOnly=false, int xStep=1, int yStep=1) const |
| Assign the field to an image, overwriting values already present. More... | |
| template<typename T > | |
| void | addToImage (image::Image< T > &image, double scaleBy=1.0, bool overlapOnly=false, int xStep=1, int yStep=1) const |
| Add the field or a constant multiple of it to an image in-place. More... | |
| template<typename T > | |
| void | multiplyImage (image::Image< T > &image, bool overlapOnly=false, int xStep=1, int yStep=1) const |
| Multiply an image by the field in-place. More... | |
| template<typename T > | |
| void | divideImage (image::Image< T > &image, bool overlapOnly=false, int xStep=1, int yStep=1) const |
| Divide an image by the field in-place. More... | |
| std::shared_ptr< BoundedField > | operator/ (double scale) const |
| bool | operator!= (BoundedField const &rhs) const |
| BoundedFields (of the same sublcass) are equal if their bounding boxes and parameters are equal. More... | |
| virtual | ~BoundedField () |
Public Member Functions inherited from lsst::afw::table::io::Persistable | |
| void | writeFits (std::string const &fileName, std::string const &mode="w") const |
| Write the object to a regular FITS file. More... | |
| void | writeFits (fits::MemFileManager &manager, std::string const &mode="w") const |
| Write the object to a FITS image in memory. More... | |
| void | writeFits (fits::Fits &fitsfile) const |
| Write the object to an already-open FITS object. More... | |
| virtual | ~Persistable () |
Protected Member Functions | |
| std::string | getPersistenceName () const override |
| Return the unique name used to persist this object and look up its factory. More... | |
| std::string | getPythonModule () const override |
| Return the fully-qualified Python module that should be imported to guarantee that its factory is registered. More... | |
| void | write (OutputArchiveHandle &handle) const override |
| Write the object to one or more catalogs. More... | |
Protected Member Functions inherited from lsst::afw::math::BoundedField | |
| BoundedField (geom::Box2I const &bbox) | |
Protected Member Functions inherited from lsst::afw::table::io::Persistable | |
| Persistable () | |
| Persistable (Persistable const &other) | |
| void | operator= (Persistable const &other) |
Additional Inherited Members | |
Static Public Member Functions inherited from lsst::afw::table::io::PersistableFacade< TransformBoundedField > | |
| static std::shared_ptr< TransformBoundedField > | readFits (fits::Fits &fitsfile) |
| Read an object from an already open FITS object. More... | |
| static std::shared_ptr< TransformBoundedField > | readFits (std::string const &fileName, int hdu=INT_MIN) |
| Read an object from a regular FITS file. More... | |
| static std::shared_ptr< TransformBoundedField > | readFits (fits::MemFileManager &manager, int hdu=INT_MIN) |
| Read an object from a FITS file in memory. More... | |
Static Public Member Functions inherited from lsst::afw::table::io::PersistableFacade< BoundedField > | |
| static std::shared_ptr< BoundedField > | readFits (fits::Fits &fitsfile) |
| Read an object from an already open FITS object. More... | |
| static std::shared_ptr< BoundedField > | readFits (std::string const &fileName, int hdu=INT_MIN) |
| Read an object from a regular FITS file. More... | |
| static std::shared_ptr< BoundedField > | readFits (fits::MemFileManager &manager, int hdu=INT_MIN) |
| Read an object from a FITS file in memory. More... | |
Protected Types inherited from lsst::afw::table::io::Persistable | |
| typedef io::OutputArchiveHandle | OutputArchiveHandle |
A BoundedField based on geom::Transform<Poin2Endpoint, GenericEndpoint<1>>.
TransformBoundedField supports arbitrary transforms.
Definition at line 43 of file TransformBoundedField.h.
| using lsst::afw::math::TransformBoundedField::Transform = geom::Transform<geom::Point2Endpoint, geom::GenericEndpoint> |
Definition at line 46 of file TransformBoundedField.h.
| lsst::afw::math::TransformBoundedField::TransformBoundedField | ( | geom::Box2I const & | bbox, |
| Transform const & | transform | ||
| ) |
Create a TransformBoundedField from a bounding box and transform.
Definition at line 39 of file TransformBoundedField.cc.
|
inline |
Definition at line 53 of file TransformBoundedField.h.
|
default |
|
default |
|
overridevirtual |
Evaluate the field at the given point.
This is the only abstract method to be implemented by subclasses.
Subclasses should not provide bounds checking on the given position; this is the responsibility of the user, who can almost always do it more efficiently.
Implements lsst::afw::math::BoundedField.
Definition at line 48 of file TransformBoundedField.cc.
|
overridevirtual |
Evaluate the field at the given point.
This is the only abstract method to be implemented by subclasses.
Subclasses should not provide bounds checking on the given position; this is the responsibility of the user, who can almost always do it more efficiently.
Reimplemented from lsst::afw::math::BoundedField.
Definition at line 52 of file TransformBoundedField.cc.
|
overrideprotectedvirtual |
Return the unique name used to persist this object and look up its factory.
Must be less than ArchiveIndexSchema::MAX_NAME_LENGTH characters.
Reimplemented from lsst::afw::table::io::Persistable.
Definition at line 125 of file TransformBoundedField.cc.
|
overrideprotectedvirtual |
Return the fully-qualified Python module that should be imported to guarantee that its factory is registered.
Must be less than ArchiveIndexSchema::MAX_MODULE_LENGTH characters.
Will be ignored if empty.
Reimplemented from lsst::afw::table::io::Persistable.
Definition at line 129 of file TransformBoundedField.cc.
|
inline |
Get the contained Transform.
Definition at line 61 of file TransformBoundedField.h.
|
inlineoverridevirtual |
TransformBoundedField is always persistable.
Reimplemented from lsst::afw::table::io::Persistable.
Definition at line 73 of file TransformBoundedField.h.
|
overridevirtual |
Return a scaled BoundedField.
| [in] | scale | Scaling factor |
Implements lsst::afw::math::BoundedField.
Definition at line 141 of file TransformBoundedField.cc.
|
delete |
|
delete |
|
overridevirtual |
BoundedFields (of the same sublcass) are equal if their bounding boxes and parameters are equal.
Implements lsst::afw::math::BoundedField.
Definition at line 148 of file TransformBoundedField.cc.
|
overrideprotectedvirtual |
Write the object to one or more catalogs.
The handle object passed to this function provides an interface for adding new catalogs and adding nested objects to the same archive (while checking for duplicates). See OutputArchiveHandle for more information.
Reimplemented from lsst::afw::table::io::Persistable.
Definition at line 131 of file TransformBoundedField.cc.
1.8.13