File Peak.h¶
-
namespace
lsst
Class for a simple mapping implementing a generic AstrometryTransform.
Remove all non-astronomical counts from the Chunk Exposure’s pixels.
Forward declarations for lsst::utils::Cache
For details on the Cache class, see the Cache.h file.
It uses a template rather than a pointer so that the derived classes can use the specifics of the transform. The class simplePolyMapping overloads a few routines.
A base class for image defects
Numeric constants used by the Integrate.h integrator routines.
Compute Image Statistics
- Note
Gauss-Kronrod-Patterson quadrature coefficients for use in quadpack routine qng. These coefficients were calculated with 101 decimal digit arithmetic by L. W. Fullerton, Bell Labs, Nov 1981.
- Note
The Statistics class itself can only handle lsst::afw::image::MaskedImage() types. The philosophy has been to handle other types by making them look like lsst::afw::image::MaskedImage() and reusing that code. Users should have no need to instantiate a Statistics object directly, but should use the overloaded makeStatistics() factory functions.
-
namespace
afw
-
namespace
detection
Typedefs
-
typedef afw::table::ColumnViewT<PeakRecord>
PeakColumnView
¶
-
typedef afw::table::CatalogT<PeakRecord>
PeakCatalog
¶
-
typedef afw::table::CatalogT<PeakRecord const>
ConstPeakCatalog
¶
Functions
-
std::ostream &
operator<<
(std::ostream &os, PeakRecord const &record)¶
-
class
PeakRecord
: public lsst::afw::table::BaseRecord - #include <Peak.h>
Record class that represents a peak in a Footprint
Unnamed Group
-
int
getIx
() const
-
int
getIy
() const
-
void
setIx
(int ix)
-
void
setIy
(int iy)
-
lsst::geom::Point2I
getI
() const
-
lsst::geom::Point2I
getCentroid
(bool) const
-
float
getFx
() const
-
float
getFy
() const
-
void
setFx
(float fx)
-
void
setFy
(float fy)
-
lsst::geom::Point2D
getF
() const
-
lsst::geom::Point2D
getCentroid
() const
-
float
getPeakValue
() const
-
void
setPeakValue
(float peakValue)
Public Types
-
typedef PeakTable
Table
-
typedef afw::table::ColumnViewT<PeakRecord>
ColumnView
-
typedef afw::table::CatalogT<PeakRecord>
Catalog
-
typedef afw::table::CatalogT<PeakRecord const>
ConstCatalog
Public Functions
-
PeakRecord
(ConstructionToken const &token, table::detail::RecordData &&data) Constructor used by PeakTable.
While formally public, this constructor is conceptually and effectively protected, due to the (protected) ConstructionToken argument.
This is to allow make_shared to be used, as that cannot be used on a truly protected or private constructor.
-
~PeakRecord
()
-
PeakRecord
(PeakRecord const&)
-
PeakRecord
(PeakRecord&&)
-
PeakRecord &
operator=
(PeakRecord const&)
-
PeakRecord &
operator=
(PeakRecord&&)
Friends
-
friend
lsst::afw::detection::PeakTable
-
int
-
class
PeakTable
: public lsst::afw::table::BaseTable - #include <Peak.h>
Table class for Peaks in Footprints.
Unnamed Group
Public Functions
-
~PeakTable
()
-
std::shared_ptr<afw::table::IdFactory>
getIdFactory
() Return the object that generates IDs for the table (may be null).
-
std::shared_ptr<afw::table::IdFactory const>
getIdFactory
() const Return the object that generates IDs for the table (may be null).
Switch to a new IdFactory object that generates IDs for the table (may be null).
-
std::shared_ptr<PeakTable>
clone
() const Return a polymorphic deep copy of the table.
Derived classes should reimplement by static-casting the output of _clone to a pointer-to-derived to simulate covariant return types.
Cloning a table does not clone its associated records; the new table produced by clone() does not have any associated records.
-
std::shared_ptr<PeakRecord>
makeRecord
() Default-construct an associated record.
Derived classes should reimplement by static-casting the output of _makeRecord to the appropriate BaseRecord subclass to simulate covariant return types.
-
std::shared_ptr<PeakRecord>
copyRecord
(afw::table::BaseRecord const &other) Deep-copy a record, requiring that it have the same schema as this table.
Regardless of the type or associated table of the input record, the type of the output record will be the type associated with this table and the record instance will be associated with this table.
Allowing derived-class records to be constructed from base-class records could be considered a form of type-slicing, but because we already demand that all records be constructable from nothing but a table, this isn’t anything new.
Derived classes should reimplement by static-casting the output of BaseTable::copyRecord to the appropriate BaseRecord subclass.
This is implemented using makeRecord and calling record.assign on the results; override those to change the behavior.
-
std::shared_ptr<PeakRecord>
copyRecord
(afw::table::BaseRecord const &other, afw::table::SchemaMapper const &mapper) Deep-copy a record, requiring that it have the same schema as this table.
Regardless of the type or associated table of the input record, the type of the output record will be the type associated with this table and the record instance will be associated with this table.
Allowing derived-class records to be constructed from base-class records could be considered a form of type-slicing, but because we already demand that all records be constructable from nothing but a table, this isn’t anything new.
Derived classes should reimplement by static-casting the output of BaseTable::copyRecord to the appropriate BaseRecord subclass.
This is implemented using makeRecord and calling record.assign on the results; override those to change the behavior.
Public Static Functions
-
static std::shared_ptr<PeakTable>
make
(afw::table::Schema const &schema, bool forceNew = false) Obtain a table that can be used to create records with given schema
If a
PeakTable already exists that uses this Schema, that PeakTable will be returned instead of creating a new one. This is different from how most Record/Table classes work, but it is an important memory optimization for Peaks, for which we expect to have very few distinct Schemas as well as many catalogs (one per Footprint) with a small number of Peaks; we don’t want to have a different PeakTable for each one of those catalogs if they all share the same Schema. This behavior can be disabled by setting forceNewTable=true or by cloning an existing table (in both of these cases, the new table will not be reused in the future, either)
-
static afw::table::Schema
makeMinimalSchema
() Return a minimal schema for Peak tables and records.
The returned schema can and generally should be modified further, but many operations on PeakRecords will assume that at least the fields provided by this routine are present.
-
static bool
checkSchema
(afw::table::Schema const &other) Return true if the given schema is a valid PeakTable schema.
This will always be true if the given schema was originally constructed using makeMinimalSchema(), and will rarely be true otherwise.
Protected Functions
-
PeakTable
(PeakTable const &other)
-
PeakTable
(PeakTable &&other)
-
std::shared_ptr<afw::table::BaseTable>
_clone
() const Clone implementation with noncovariant return types.
-
std::shared_ptr<afw::table::BaseRecord>
_makeRecord
() Default-construct an associated record (protected implementation).
Private Functions
Private Static Functions
-
static MinimalSchema &
getMinimalSchema
()¶
Friends
-
friend
lsst::afw::detection::afw::table::io::FitsWriter
-
-
typedef afw::table::ColumnViewT<PeakRecord>
-
namespace