LSST Applications 27.0.0,g0265f82a02+469cd937ee,g02d81e74bb+21ad69e7e1,g1470d8bcf6+cbe83ee85a,g2079a07aa2+e67c6346a6,g212a7c68fe+04a9158687,g2305ad1205+94392ce272,g295015adf3+81dd352a9d,g2bbee38e9b+469cd937ee,g337abbeb29+469cd937ee,g3939d97d7f+72a9f7b576,g487adcacf7+71499e7cba,g50ff169b8f+5929b3527e,g52b1c1532d+a6fc98d2e7,g591dd9f2cf+df404f777f,g5a732f18d5+be83d3ecdb,g64a986408d+21ad69e7e1,g858d7b2824+21ad69e7e1,g8a8a8dda67+a6fc98d2e7,g99cad8db69+f62e5b0af5,g9ddcbc5298+d4bad12328,ga1e77700b3+9c366c4306,ga8c6da7877+71e4819109,gb0e22166c9+25ba2f69a1,gb6a65358fc+469cd937ee,gbb8dafda3b+69d3c0e320,gc07e1c2157+a98bf949bb,gc120e1dc64+615ec43309,gc28159a63d+469cd937ee,gcf0d15dbbd+72a9f7b576,gdaeeff99f8+a38ce5ea23,ge6526c86ff+3a7c1ac5f1,ge79ae78c31+469cd937ee,gee10cc3b42+a6fc98d2e7,gf1cff7945b+21ad69e7e1,gfbcc870c63+9a11dc8c8f
LSST Data Management Base Package
|
Public Types | |
enum | ComparisonFlags { EQUAL_KEYS = 0x01 , EQUAL_NAMES = 0x02 , EQUAL_DOCS = 0x04 , EQUAL_UNITS = 0x08 , EQUAL_FIELDS = 0x0F , EQUAL_ALIASES = 0x10 , IDENTICAL = 0x1F } |
Bit flags used when comparing schemas. More... | |
Public Member Functions | |
virtual bool | isHeavy () const |
Indicates if this object is a HeavyFootprint. | |
std::shared_ptr< geom::SpanSet > | getSpans () const |
Return a shared pointer to the SpanSet. | |
void | setSpans (std::shared_ptr< geom::SpanSet > otherSpanSet) |
Sets the shared pointer to the SpanSet in the Footprint. | |
PeakCatalog & | getPeaks () |
Return the Peaks contained in this Footprint. | |
const PeakCatalog & | getPeaks () const |
std::shared_ptr< PeakRecord > | addPeak (float fx, float fy, float value) |
Convenience function to add a peak. | |
void | sortPeaks (afw::table::Key< float > const &key=afw::table::Key< float >()) |
Sort Peaks from most positive value to most negative. | |
void | setPeakSchema (afw::table::Schema const &peakSchema) |
Set the Schema used by the PeakCatalog (will throw if PeakCatalog is not empty). | |
void | setPeakCatalog (PeakCatalog const &otherPeaks) |
Set the peakCatalog to a copy of the supplied catalog. | |
std::size_t | getArea () const |
Return the number of pixels in this Footprint. | |
lsst::geom::Point2D | getCentroid () const |
Return the Footprint's centroid. | |
geom::ellipses::Quadrupole | getShape () const |
Return the Footprint's shape (interpreted as an ellipse) | |
void | shift (int dx, int dy) |
Shift a Footprint by (dx, dy) | |
void | shift (lsst::geom::ExtentI const &d) |
Shift a Footprint by a given extent. | |
lsst::geom::Box2I | getBBox () const |
Return the Footprint's bounding box. | |
lsst::geom::Box2I | getRegion () const |
Return the corners of the MaskedImage the footprints live in. | |
void | setRegion (lsst::geom::Box2I const ®ion) |
Set the corners of the MaskedImage wherein the footprints dwell. | |
void | clipTo (lsst::geom::Box2I const &bbox) |
Clip the Footprint such that all values lie inside the supplied Bounding Box. | |
bool | contains (lsst::geom::Point2I const &pix) const |
Tests if a pixel postion falls inside the Footprint. | |
std::shared_ptr< Footprint > | transform (std::shared_ptr< geom::SkyWcs > source, std::shared_ptr< geom::SkyWcs > target, lsst::geom::Box2I const ®ion, bool doClip=true) const |
Transform the footprint from one WCS to another. | |
std::shared_ptr< Footprint > | transform (lsst::geom::LinearTransform const &t, lsst::geom::Box2I const ®ion, bool doClip=true) const |
Return a new Footprint whose pixels are the product of applying the specified transformation. | |
std::shared_ptr< Footprint > | transform (lsst::geom::AffineTransform const &t, lsst::geom::Box2I const ®ion, bool doClip=true) const |
Return a new Footprint whose pixels are the product of applying the specified transformation. | |
std::shared_ptr< Footprint > | transform (geom::TransformPoint2ToPoint2 const &t, lsst::geom::Box2I const ®ion, bool doClip=true) const |
Return a new Footprint whose pixels are the product of applying the specified transformation. | |
bool | isPersistable () const noexcept override |
Report if this object is persistable. | |
void | dilate (int r, geom::Stencil s=geom::Stencil::CIRCLE) |
Dilate the Footprint with a defined kernel. | |
void | dilate (geom::SpanSet const &other) |
Dilate the Footprint with a defined kernel. | |
void | erode (int r, geom::Stencil s=geom::Stencil::CIRCLE) |
Erode the Footprint with a defined kernel. | |
void | erode (geom::SpanSet const &other) |
Erode the Footprint with a defined kernel. | |
void | removeOrphanPeaks () |
Remove peaks from the PeakCatalog that fall outside the area of the Footprint. | |
void | updatePeakSignificance (double sigma) |
Compute and update the significance of each peak, given a single value for sigma. | |
void | updatePeakSignificance (image::Image< float > const &variance, int polarity) |
Compute and update the significance of each peak, using the variance image. | |
bool | isContiguous () const |
Reports if the Footprint is simply connected or has multiple components. | |
std::vector< std::shared_ptr< Footprint > > | split () const |
Split a multi-component Footprint into a vector of contiguous Footprints. | |
bool | operator== (Footprint const &other) const |
equality operator | |
void | writeFits (std::string const &fileName, std::string const &mode="w") const |
Write the object to a regular FITS file. | |
void | writeFits (fits::MemFileManager &manager, std::string const &mode="w") const |
Write the object to a FITS image in memory. | |
void | writeFits (fits::Fits &fitsfile) const |
Write the object to an already-open FITS object. | |
std::string | join (std::string const &a, std::string const &b) const |
Join strings using the field delimiter appropriate for this Schema. | |
std::string | join (std::string const &a, std::string const &b, std::string const &c) const |
std::string | join (std::string const &a, std::string const &b, std::string const &c, std::string const &d) const |
template<typename T > | |
SchemaItem< T > | find (std::string const &name) const |
Find a SchemaItem in the Schema by name. | |
template<typename T > | |
SchemaItem< T > | find (Key< T > const &key) const |
Find a SchemaItem in the Schema by key. | |
template<typename F > | |
void | findAndApply (std::string const &name, F &&func) const |
Find a SchemaItem by name and run a functor on it. | |
SubSchema | operator[] (std::string const &name) const |
Look up a (possibly incomplete) name in the Schema. | |
std::set< std::string > | getNames (bool topOnly=false) const |
Return a set of field names in the schema. | |
std::size_t | getRecordSize () const |
Return the raw size of a record in bytes. | |
std::size_t | getFieldCount () const |
The total number of fields. | |
std::size_t | getFlagFieldCount () const |
The number of Flag fields. | |
std::size_t | getNonFlagFieldCount () const |
The number of non-Flag fields. | |
template<typename T > | |
Key< T > | addField (Field< T > const &field, bool doReplace=false) |
Add a new field to the Schema, and return the associated Key. | |
template<typename T > | |
Key< T > | addField (std::string const &name, std::string const &doc, std::string const &units="", FieldBase< T > const &base=FieldBase< T >(), bool doReplace=false) |
Add a new field to the Schema, and return the associated Key. | |
template<typename T > | |
Key< T > | addField (std::string const &name, std::string const &doc, FieldBase< T > const &base, bool doReplace=false) |
Add a new field to the Schema, and return the associated Key. | |
template<typename T > | |
void | replaceField (Key< T > const &key, Field< T > const &field) |
Replace the Field (name/description) for an existing Key. | |
template<typename F > | |
void | forEach (F &func) const |
Apply a functor to each SchemaItem in the Schema. | |
template<typename F > | |
void | forEach (F const &func) const |
bool | operator== (Schema const &other) const |
Equality comparison. | |
bool | operator!= (Schema const &other) const |
std::size_t | hash_value () const noexcept |
Return a hash of this object. | |
int | compare (Schema const &other, int flags=EQUAL_KEYS) const |
Do a detailed equality comparison of two schemas. | |
int | contains (Schema const &other, int flags=EQUAL_KEYS) const |
Test whether the given schema is a subset of this. | |
template<typename T > | |
int | contains (SchemaItem< T > const &item, int flags=EQUAL_KEYS) const |
Return true if the given item is in this schema. | |
std::shared_ptr< AliasMap > | getAliasMap () const |
Return the map of aliases. | |
void | setAliasMap (std::shared_ptr< AliasMap > aliases) |
Set the alias map. | |
void | disconnectAliases () |
Sever the connection between this schema and any others with which it shares aliases. | |
Static Public Member Functions | |
static std::shared_ptr< lsst::afw::detection::Footprint > | readFits (fits::Fits &fitsfile) |
Read an object from an already open FITS object. | |
static std::shared_ptr< lsst::afw::detection::Footprint > | readFits (std::string const &fileName, int hdu=fits::DEFAULT_HDU) |
Read an object from a regular FITS file. | |
static std::shared_ptr< lsst::afw::detection::Footprint > | readFits (fits::MemFileManager &manager, int hdu=fits::DEFAULT_HDU) |
Read an object from a FITS file in memory. | |
static std::shared_ptr< lsst::afw::detection::Footprint > | dynamicCast (std::shared_ptr< Persistable > const &ptr) |
Dynamically cast a shared_ptr. | |
static Schema | readFits (std::string const &filename, int hdu=fits::DEFAULT_HDU) |
Construct from reading a FITS file. | |
static Schema | readFits (fits::MemFileManager &manager, int hdu=fits::DEFAULT_HDU) |
static Schema | readFits (fits::Fits &fitsfile) |
static Schema | fromFitsMetadata (daf::base::PropertyList &header, bool stripMetadata=true) |
Construct from reading a FITS header. | |
Static Public Attributes | |
schema | |
static int const | VERSION = detail::SchemaImpl::VERSION |
Protected Types | |
using | OutputArchiveHandle = io::OutputArchiveHandle |
Protected Member Functions | |
std::string | getPersistenceName () const override |
Return the name correspoinging ot the persistence type. | |
std::string | getPythonModule () const override |
Return the python module the object will live in. | |
void | write (OutputArchiveHandle &handle) const override |
Write an instance of a Footprint to an output Archive. | |
Static Protected Member Functions | |
static std::unique_ptr< Footprint > | readSpanSet (afw::table::BaseCatalog const &, afw::table::io::InputArchive const &) |
Static method used to unpersist the SpanSet member of the Footprint class. | |
static void | readPeaks (afw::table::BaseCatalog const &, Footprint &) |
Static method used to unpersist the PeakCatalog member of the Footprint class. | |
self.measurement.run(measCat, exposure, refCat, refWcs, exposureId=exposureId) if self.config.doApCorr: apCorrMap = exposure.getInfo().getApCorrMap() if apCorrMap is None: self.log.warning("Forced exposure image does not have valid aperture correction; skipping.") else: self.applyApCorr.run( catalog=measCat, apCorrMap=apCorrMap, ) self.catalogCalculation.run(measCat) return pipeBase.Struct(measCat=measCat) def attachFootprints(self, sources, refCat, exposure, refWcs):
Definition at line 432 of file forcedPhotCcd.py.
|
protectedinherited |
Definition at line 108 of file Persistable.h.
|
inherited |
Bit flags used when comparing schemas.
All quantities are compared in insertion order, so if two schemas have the same fields added in opposite order, they will not be considered equal.
Definition at line 65 of file Schema.h.
|
inherited |
Add a new field to the Schema, and return the associated Key.
The offsets of fields are determined by the order they are added, but may be not contiguous (the Schema may add padding to align fields, and how much padding is considered an implementation detail).
If doReplace is true and the field exists, it will be replaced instead of throwing an exception.
Definition at line 479 of file Schema.cc.
|
inlineinherited |
Add a new field to the Schema, and return the associated Key.
This is simply a convenience wrapper, equivalent to:
addField(Field<T>(name, doc, base), doReplace)
Definition at line 194 of file Schema.h.
|
inlineinherited |
|
inherited |
Convenience function to add a peak.
fx | Float containing the x position of a peak |
fy | Float containing the y position of a peak |
value | The intensity value of the peak |
Definition at line 47 of file Footprint.cc.
|
inherited |
Clip the Footprint such that all values lie inside the supplied Bounding Box.
bbox | Integer box object that defines the boundaries the footprint should be clipped to. |
Definition at line 74 of file Footprint.cc.
|
inherited |
Do a detailed equality comparison of two schemas.
See ComparisonFlags for a description of the possible return values
[in] | other | The other schema to compare to. |
[in] | flags | Which types of comparisions to perform. Flag bits not present here will never be returned. |
Definition at line 509 of file Schema.cc.
|
inherited |
Tests if a pixel postion falls inside the Footprint.
pix | Integer point object defining the position of a pixel to test |
Definition at line 79 of file Footprint.cc.
|
inherited |
Test whether the given schema is a subset of this.
This function behaves very similarly to compare(), but ignores fields that are present in this but absent in other.
Definition at line 490 of file Schema.cc.
|
inherited |
Return true if the given item is in this schema.
The flags must include the EQUAL_KEYS bit, and if the item cannot be found by key no bits will be set on return.
|
inherited |
Dilate the Footprint with a defined kernel.
This function enlarges the SpanSet which defines the area of the Footprint by an amount governed by the input kernel
other | SpanSet to use as the kernel in dilation |
Definition at line 124 of file Footprint.cc.
|
inherited |
Dilate the Footprint with a defined kernel.
This function enlarges the SpanSet which defines the area of the Footprint by an amount governed by in input kernel
r | The radius of the stencil object used to create a dilation kernel |
s | The stencil object used to create the dilation kernel |
Definition at line 122 of file Footprint.cc.
|
inherited |
|
staticinherited |
Dynamically cast a shared_ptr.
Dynamically cast a shared pointer and raise on failure.
You must provide an explicit template instantiation in the .cc file for each class that inherits from PersistableFacade. Designed to work around RTTI issues on macOS with hidden symbols;
lsst::pex::exceptions::LogicError | if the cast fails |
param[in] ptr The pointer to be cast.
lsst::pex::exceptions::TypeError | If the dynamic cast fails. |
Definition at line 218 of file Persistable.cc.
|
inherited |
Erode the Footprint with a defined kernel.
This function reduces the size of the SpanSet which defines the area of the Footprint by an amount governed by the input kernel
other | SpanSet to use as the kernel in erosion |
Definition at line 131 of file Footprint.cc.
|
inherited |
Erode the Footprint with a defined kernel.
This function reduces the size of the SpanSet which defines the area of the Footprint by an amount governed by the input kernel
r | The radius of the stencil object used to create a erosion kernel |
s | The stencil object used to create the erosion kernel |
Definition at line 126 of file Footprint.cc.
|
inherited |
Find a SchemaItem in the Schema by key.
Keys corresponding to named subfields are accepted, and will return a SchemaItem whose field is copied from the parent field with only the name changed. Keys corresponding to unnamed subfields (such as array elements) are not accepted.
Definition at line 474 of file Schema.cc.
|
inherited |
Find a SchemaItem in the Schema by name.
Names corresponding to named subfields are accepted, and will return a SchemaItem whose field is copied from the parent field with only the name changed.
|
inlineinherited |
Find a SchemaItem by name and run a functor on it.
Names corresponding to named subfields are not accepted. The given functor must have an overloaded function call operator that accepts any SchemaItem type (the same as a functor provided to forEach).
Definition at line 117 of file Schema.h.
|
inlineinherited |
Apply a functor to each SchemaItem in the Schema.
The functor must have a templated or sufficiently overloaded operator() that supports SchemaItems of all supported field types - even those that are not present in this particular Schema.
Fields will be processed in the order they were added to the schema.
Definition at line 214 of file Schema.h.
|
staticinherited |
|
inlineinherited |
Return the map of aliases.
Note that while this is a const method, it does allow the Schema's aliases to be edited - this allows the aliases to be modified even after a Table has been constructed from the Schema.
See AliasMap for more information on schema aliases.
Definition at line 279 of file Schema.h.
|
inlineinherited |
Return the number of pixels in this Footprint.
This function returns the real number of pixels, not the area of the bbox.
Definition at line 173 of file Footprint.h.
|
inlineinherited |
Return the Footprint's bounding box.
Definition at line 208 of file Footprint.h.
|
inlineinherited |
Return the Footprint's centroid.
The centroid is calculated as the mean of the pixel centers
Definition at line 180 of file Footprint.h.
|
inlineinherited |
The total number of fields.
Definition at line 152 of file Schema.h.
|
inlineinherited |
The number of Flag fields.
Definition at line 155 of file Schema.h.
|
inherited |
Return a set of field names in the schema.
If topOnly==true, return a unique list of only the part of the names before the first underscore. For example, if the full list of field names is ['a_b_c', 'a_d', 'e_f'], topOnly==true will return ['a', 'e'].
Returns an instance of Python's builtin set in Python.
Aliases are not returned.
Definition at line 464 of file Schema.cc.
|
inlineinherited |
The number of non-Flag fields.
Definition at line 158 of file Schema.h.
|
inlineinherited |
Return the Peaks contained in this Footprint.
The peaks should be ordered by decreasing pixel intensity at the peak position (so the most negative peak appears last). Users that add new Peaks manually are responsible for maintaining this sorting.
Definition at line 129 of file Footprint.h.
|
inlineinherited |
Definition at line 130 of file Footprint.h.
|
overrideprotectedvirtualinherited |
Return the name correspoinging ot the persistence type.
Reimplemented from lsst::afw::table::io::Persistable.
Reimplemented in lsst::afw::detection::HeavyFootprint< ImagePixelT, MaskPixelT, VariancePixelT >.
Definition at line 269 of file Footprint.cc.
|
inlineoverrideprotectedvirtualinherited |
Return the python module the object will live in.
Reimplemented from lsst::afw::table::io::Persistable.
Definition at line 385 of file Footprint.h.
|
inlineinherited |
Return the raw size of a record in bytes.
Definition at line 149 of file Schema.h.
|
inlineinherited |
Return the corners of the MaskedImage the footprints live in.
Definition at line 213 of file Footprint.h.
|
inlineinherited |
Return the Footprint's shape (interpreted as an ellipse)
The shape is determined by measuring the moments of the pixel centers about its centroid (cf. getCentroid)
Definition at line 188 of file Footprint.h.
|
inlineinherited |
Return a shared pointer to the SpanSet.
Definition at line 115 of file Footprint.h.
|
noexceptinherited |
Return a hash of this object.
Definition at line 520 of file Schema.cc.
|
inlineinherited |
Reports if the Footprint is simply connected or has multiple components.
Definition at line 358 of file Footprint.h.
|
inlinevirtualinherited |
Indicates if this object is a HeavyFootprint.
Reimplemented in lsst::afw::detection::HeavyFootprint< ImagePixelT, MaskPixelT, VariancePixelT >.
Definition at line 111 of file Footprint.h.
|
inlineoverridevirtualnoexceptinherited |
Report if this object is persistable.
Reimplemented from lsst::afw::table::io::Persistable.
Definition at line 283 of file Footprint.h.
|
inherited |
|
inlineinherited |
Definition at line 78 of file Schema.h.
|
inlineinherited |
Definition at line 236 of file Schema.h.
|
inherited |
equality operator
other | The Footprint for which equality will be computed |
Definition at line 176 of file Footprint.cc.
Equality comparison.
Schemas are considered equal according the standard equality operator if their sequence of keys are identical (same types with the same offsets); names and descriptions of fields are not considered. For a more precise comparison, use compare() or contains().
Definition at line 235 of file Schema.h.
|
inlineinherited |
Look up a (possibly incomplete) name in the Schema.
See SubSchema for more information.
This member function should generally only be used on "finished" Schemas; modifying a Schema after a SubSchema to it has been constructed will not allow the proxy to track the additions, and will invoke the copy-on-write mechanism of the Schema itself.
Definition at line 464 of file Schema.h.
|
inlinestaticinherited |
Read an object from an already open FITS object.
[in] | fitsfile | FITS object to read from, already positioned at the desired HDU. |
Definition at line 183 of file Persistable.h.
|
staticinherited |
Definition at line 442 of file Schema.cc.
|
inlinestaticinherited |
Read an object from a FITS file in memory.
[in] | manager | Manager for the memory to read from. |
[in] | hdu | HDU to read, where 0 is the primary. The special value of afw::fits::DEFAULT_HDU skips the primary HDU if it is empty. |
Definition at line 205 of file Persistable.h.
|
staticinherited |
Definition at line 436 of file Schema.cc.
|
inlinestaticinherited |
Read an object from a regular FITS file.
[in] | fileName | Name of the file to read. |
[in] | hdu | HDU to read, where 0 is the primary. The special value of afw::fits::DEFAULT_HDU skips the primary HDU if it is empty. |
Definition at line 194 of file Persistable.h.
|
staticinherited |
|
staticprotectedinherited |
Static method used to unpersist the PeakCatalog member of the Footprint class.
Definition at line 310 of file Footprint.cc.
|
staticprotectedinherited |
Static method used to unpersist the SpanSet member of the Footprint class.
Definition at line 286 of file Footprint.cc.
|
inherited |
Remove peaks from the PeakCatalog that fall outside the area of the Footprint.
Definition at line 136 of file Footprint.cc.
|
inherited |
Replace the Field (name/description) for an existing Key.
Definition at line 485 of file Schema.cc.
|
inherited |
Set the alias map.
This resets the internal pointer to the alias map, disconnecting this schema from any others it shares aliases with.
Passing a null pointer is equivalent to passing an empty map.
Definition at line 533 of file Schema.cc.
|
inherited |
Set the peakCatalog to a copy of the supplied catalog.
PeakCatalog will be copied into the Footprint, but a PeakCatalog is a shallow copy, so records will not be duplicated. This function will throw an error if the PeakCatalog of *this is not empty.
otherPeaks | The PeakCatalog to copy |
Definition at line 435 of file Footprint.cc.
|
inherited |
Set the Schema used by the PeakCatalog (will throw if PeakCatalog is not empty).
peakSchema | The schema to use in the PeakCatalog |
pex::exceptions::LogicError | Thrown if if the PeakCatalog is not empty |
Definition at line 431 of file Footprint.cc.
|
inlineinherited |
Set the corners of the MaskedImage wherein the footprints dwell.
region | A box describing the corners of the Image the Footprint derives from |
Definition at line 220 of file Footprint.h.
|
inherited |
Sets the shared pointer to the SpanSet in the Footprint.
otherSpanSet | Shared pointer to a SpanSet |
Definition at line 45 of file Footprint.cc.
|
inherited |
Shift a Footprint by (dx, dy)
dx | How much to move Footprint in column direction |
dy | How much to move in row direction |
Definition at line 64 of file Footprint.cc.
|
inlineinherited |
Shift a Footprint by a given extent.
d | ExtentI object which gives the dimensions the Footprint should be shifted |
Definition at line 203 of file Footprint.h.
|
inherited |
Sort Peaks from most positive value to most negative.
If the key passed is invalid (the default) PeakTable::getPeakValueKey() will be used.
key | A key corresponding to the field in the Schema the PeakCatalog is to be sorted by. |
Definition at line 57 of file Footprint.cc.
|
inherited |
Split a multi-component Footprint into a vector of contiguous Footprints.
Split a multi-component Footprint such that each Footprint in the output vector is contiguous and contains only peaks that can be found within the bounds of the Footprint
Definition at line 159 of file Footprint.cc.
|
inherited |
Return a new Footprint whose pixels are the product of applying the specified transformation.
t | A 2-D transform which will be used to map the pixels |
region | Used to set the "region" box of the returned footprint; note that this is NOT the same as the footprint's bounding box. |
doClip | If true, clip the new footprint to the region bbox before returning it. |
Definition at line 98 of file Footprint.cc.
|
inherited |
Return a new Footprint whose pixels are the product of applying the specified transformation.
t | An affine transform object which will be used to map the pixels |
region | Used to set the "region" box of the returned footprint; note that this is NOT the same as the footprint's bounding box. |
doClip | If true, clip the new footprint to the region bbox before returning it. |
Definition at line 93 of file Footprint.cc.
|
inherited |
Return a new Footprint whose pixels are the product of applying the specified transformation.
t | A linear transform object which will be used to map the pixels |
region | Used to set the "region" box of the returned footprint; note that this is NOT the same as the footprint's bounding box. |
doClip | If true, clip the new footprint to the region bbox before returning it. |
Definition at line 88 of file Footprint.cc.
|
inherited |
Transform the footprint from one WCS to another.
source | Wcs that defines the coordinate system of the input footprint. |
target | Wcs that defines that desired coordinate system of the returned footprint. |
region | Used to set the "region" box of the returned footprint; note that this is NOT the same as the footprint's bounding box. |
doClip | If true, clip the new footprint to the region bbox before returning it. |
Definition at line 81 of file Footprint.cc.
|
inherited |
Compute and update the significance of each peak, given a single value for sigma.
The Footprint peak schema must already have a significance
field in it.
sigma | The standard deviation for peak detection, positive or negative as appropriate. |
pex::exceptions::NotFoundError | Thrown if the the peaks do not have a significance field. |
Definition at line 145 of file Footprint.cc.
|
inherited |
Compute and update the significance of each peak, using the variance image.
The Footprint peak schema must already have a significance
field in it.
variance | The variance plane of the image that this footprint is in. |
polarity | +1 if this is detected as a positive footprint, -1 if negative. |
pex::exceptions::NotFoundError | Thrown if the the peaks do not have a significance field. |
Definition at line 152 of file Footprint.cc.
|
overrideprotectedvirtualinherited |
Write an instance of a Footprint to an output Archive.
Reimplemented from lsst::afw::table::io::Persistable.
Reimplemented in lsst::afw::detection::HeavyFootprint< ImagePixelT, MaskPixelT, VariancePixelT >.
Definition at line 271 of file Footprint.cc.
|
inherited |
Write the object to an already-open FITS object.
[in] | fitsfile | Open FITS object to write to. |
Definition at line 18 of file Persistable.cc.
|
inherited |
Write the object to a FITS image in memory.
[in] | manager | Name of the file to write to. |
[in] | mode | If "w", any existing file with the given name will be overwritten. If "a", new HDUs will be appended to an existing file. |
Definition at line 29 of file Persistable.cc.
|
inherited |
Write the object to a regular FITS file.
[in] | fileName | Name of the file to write to. |
[in] | mode | If "w", any existing file with the given name will be overwritten. If "a", new HDUs will be appended to an existing file. |
Definition at line 24 of file Persistable.cc.
|
static |
Definition at line 546 of file forcedPhotCcd.py.
|
staticinherited |