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
|
List of Merged Footprints. More...
#include <FootprintMerge.h>
Classes | |
struct | KeyTuple |
Public Member Functions | |
FootprintMergeList (afw::table::Schema &sourceSchema, std::vector< std::string > const &filterList, afw::table::Schema const &initialPeakSchema) | |
FootprintMergeList (afw::table::Schema &sourceSchema, std::vector< std::string > const &filterList) | |
afw::table::Schema | getPeakSchema () const |
Return the schema for PeakRecords in the merged footprints. More... | |
void | addCatalog (boost::shared_ptr< afw::table::SourceTable > sourceTable, afw::table::SourceCatalog const &inputCat, std::string const &filter, float minNewPeakDist=-1., bool doMerge=true, float maxSamePeakDist=-1.) |
Add objects from a SourceCatalog in the specified filter. More... | |
void | clearCatalog () |
Clear entries in the current vector. More... | |
void | getFinalSources (afw::table::SourceCatalog &outputCat, bool doNorm=true) |
Get SourceCatalog with entries that contain the final Footprint and SourceRecord for each entry. More... | |
Private Types | |
typedef afw::table::Key < afw::table::Flag > | FlagKey |
typedef std::vector < boost::shared_ptr < FootprintMerge > > | FootprintMergeVec |
typedef std::map< std::string, KeyTuple > | FilterMap |
Private Member Functions | |
void | _initialize (afw::table::Schema &sourceSchema, std::vector< std::string > const &filterList) |
Private Attributes | |
FootprintMergeVec | _mergeList |
FilterMap | _filterMap |
afw::table::SchemaMapper | _peakSchemaMapper |
boost::shared_ptr< PeakTable > | _peakTable |
Friends | |
class | FootprintMerge |
List of Merged Footprints.
Stores a vector of FootprintMerges and SourceRecords that contain the union of different footprints and which filters it was detected in. Individual Footprints from a SourceCatalog can be added to the vector (note that any SourceRecords with parent!=0 will be skipped). If a Footprint overlaps an existing FootprintMerge, the Footprint will be added to it. If not, then a new FootprintMerge will be created and added to the vector.
The search algorithm uses a brute force approach over the current list. This should be fine if we are operating on smallish number of objects, such as at the tract level.
Definition at line 54 of file FootprintMerge.h.
|
private |
Definition at line 138 of file FootprintMerge.h.
|
private |
Definition at line 130 of file FootprintMerge.h.
|
private |
Definition at line 137 of file FootprintMerge.h.
lsst::afw::detection::FootprintMergeList::FootprintMergeList | ( | afw::table::Schema & | sourceSchema, |
std::vector< std::string > const & | filterList, | ||
afw::table::Schema const & | initialPeakSchema | ||
) |
Initialize the merge with a custom initial peak schema
[in,out] | sourceSchema | Input schema for SourceRecords to be merged, modified on return to include 'merge_footprint_<filter>' Flag fields that will indicate the origin of the source. |
[in] | filterList | Sequence of filter names to be used in Flag fields. |
[in] | initialPeakSchema | Input schema of PeakRecords in Footprints to be merged. |
The output schema for PeakRecords will include additional 'merge_peak_<filter>' Flag fields that indicate the origin of peaks. This can be accessed by getPeakSchema().
Definition at line 215 of file FootprintMerge.cc.
lsst::afw::detection::FootprintMergeList::FootprintMergeList | ( | afw::table::Schema & | sourceSchema, |
std::vector< std::string > const & | filterList | ||
) |
Initialize the merge with the default peak schema
[in,out] | sourceSchema | Input schema for SourceRecords to be merged, modified on return to include 'merge_footprint_<filter>' Flag fields that will indicate the origin of the source. |
[in] | filterList | Sequence of filter names to be used in Flag fields. |
[in] | initialPeakSchema | Input schema of PeakRecords in Footprints to be merged. |
The output schema for PeakRecords will include additional 'merge_peak_<filter>' Flag fields that indicate the origin of peaks. This can be accessed by getPeakSchema().
Definition at line 223 of file FootprintMerge.cc.
|
private |
Definition at line 230 of file FootprintMerge.cc.
void lsst::afw::detection::FootprintMergeList::addCatalog | ( | boost::shared_ptr< afw::table::SourceTable > | sourceTable, |
afw::table::SourceCatalog const & | inputCat, | ||
std::string const & | filter, | ||
float | minNewPeakDist = -1. , |
||
bool | doMerge = true , |
||
float | maxSamePeakDist = -1. |
||
) |
Add objects from a SourceCatalog in the specified filter.
Iterate over all objects that have not been deblendend and search for an overlapping FootprintMerge in _mergeList. If it overlaps, then it will be added to it, otherwise it will create a new one. If minNewPeakDist < 0, then new peaks will not be added to existing footprints. If minNewPeakDist >= 0, then new peaks will be added that are farther away than minNewPeakDist to the nearest existing peak.
The SourceTable is used to create new SourceRecords that store the filter information.
Definition at line 254 of file FootprintMerge.cc.
|
inline |
Clear entries in the current vector.
Definition at line 118 of file FootprintMerge.h.
void lsst::afw::detection::FootprintMergeList::getFinalSources | ( | afw::table::SourceCatalog & | outputCat, |
bool | doNorm = true |
||
) |
Get SourceCatalog with entries that contain the final Footprint and SourceRecord for each entry.
The resulting Footprints will be normalized, meaning that there peaks are sorted, and areas are calculated.
Definition at line 320 of file FootprintMerge.cc.
|
inline |
Return the schema for PeakRecords in the merged footprints.
Definition at line 93 of file FootprintMerge.h.
|
friend |
Definition at line 140 of file FootprintMerge.h.
|
private |
Definition at line 148 of file FootprintMerge.h.
|
private |
Definition at line 147 of file FootprintMerge.h.
|
private |
Definition at line 149 of file FootprintMerge.h.
|
private |
Definition at line 150 of file FootprintMerge.h.