22 #if !defined(LSST_DETECTION_FOOTPRINT_H) 23 #define LSST_DETECTION_FOOTPRINT_H 32 #include "lsst/base.h" 33 #include "lsst/pex/policy/Policy.h" 97 :
lsst::daf::base::Citizen(typeid(this)),
98 _spans(
std::make_shared<geom::SpanSet>()),
100 _region(geom::Box2I()) {}
112 virtual bool isHeavy()
const {
return false; }
116 std::shared_ptr<geom::SpanSet>
getSpans()
const {
return _spans; }
122 void setSpans(std::shared_ptr<geom::SpanSet> otherSpanSet);
139 std::shared_ptr<PeakRecord>
addPeak(
float fx,
float fy,
float value);
174 std::size_t
getArea()
const {
return _spans->getArea(); }
197 void shift(
int dx,
int dy);
247 std::shared_ptr<Footprint>
transform(std::shared_ptr<image::Wcs> source,
248 std::shared_ptr<image::Wcs> target,
geom::Box2I const ®ion,
249 bool doClip =
true)
const;
259 bool doClip =
true)
const;
269 bool doClip =
true)
const;
279 bool doClip =
true)
const;
345 std::vector<std::shared_ptr<Footprint>>
split()
const;
385 std::shared_ptr<geom::SpanSet> _spans;
410 #endif // LSST_DETECTION_FOOTPRINT_H An ellipse core with quadrupole moments as parameters.
Defines the fields and offsets for a table.
Stencil
An enumeration class which describes the shapes.
An object passed to Persistable::write to allow it to persist itself.
A compact representation of a collection of pixels.
Table class for Peaks in Footprints.
An integer coordinate rectangle.
A base class for objects that can be persisted via afw::table::io Archive classes.
A base class for image defects.
std::shared_ptr< Footprint > mergeFootprints(Footprint const &footprint1, Footprint const &footprint2)
Merges two Footprints – appends their peaks, and unions their spans, returning a new Footprint...
std::vector< lsst::afw::geom::Box2I > footprintToBBoxList(Footprint const &footprint)
Return a list of BBoxs, whose union contains exactly the pixels in the footprint, neither more nor le...
A CRTP facade class for subclasses of Persistable.