6 namespace lsst {
namespace meas {
namespace algorithms {
9 afw::geom::
Point2D const & position, afw::
image::Color const& color
17 ImagePsf(!kernel.isSpatiallyVarying()),
_kernel(kernel.clone()), _averagePosition(averagePosition) {}
20 ImagePsf(!kernel->isSpatiallyVarying()),
_kernel(kernel), _averagePosition(averagePosition) {}
39 kernel(
schema.addField<int>(
"kernel",
"archive ID of nested kernel object")),
41 schema,
"averagePosition",
"average position of stars used to make the PSF",
"pixels"
daf::base::Citizen & getCitizen()
Get the Citizen corresponding to this Schema (SchemaImpl is what inherits from Citizen).
boost::shared_ptr< afw::math::Kernel > _kernel
A read-only singleton struct containing the schema and key used in persistence for KernelPsf...
geom::Extent2I const getDimensions() const
Return the Kernel's dimensions (width, height)
int put(Persistable const *obj, bool permissive=false)
Save a nested Persistable to the same archive.
A Psf defined by a Kernel.
An object passed to Persistable::write to allow it to persist itself.
A custom container class for records, based on std::vector.
afw::table::PointKey< double > averagePosition
afw::table::Schema schema
Point< double, 2 > Point2D
static KernelPsfPersistenceHelper const & get()
KernelPsfPersistenceHelper()
table::Key< table::Array< Kernel::Pixel > > image
void markPersistent(void)
Mark a Citizen as persistent and not destroyed until process end.
afwMath::LinearCombinationKernel const & _kernel
virtual bool isPersistable() const
Whether this object is persistable; just delegates to the kernel.
double computeImage(lsst::afw::image::Image< Pixel > &image, bool doNormalize, double x=0.0, double y=0.0) const
Compute an image (pixellized representation of the kernel) in place.
KernelPsf(afw::math::Kernel const &kernel, afw::geom::Point2D const &averagePosition=afw::geom::Point2D())
Construct a KernelPsf with a clone of the given kernel.
BaseCatalog makeCatalog(Schema const &schema)
Return a new, empty catalog with the given schema.
virtual afw::geom::Point2D getAveragePosition() const
Return average position of stars; used as default position.
afw::table::Key< int > kernel
afw::geom::Point2D _averagePosition
Base class for all records.
virtual std::string getPythonModule() const
Return the fully-qualified Python module that should be imported to guarantee that its factory is reg...
boost::shared_ptr< RecordT > addNew()
Create a new record, add it to the end of the catalog, and return a pointer to it.
An intermediate base class for Psfs that use an image representation.
tbl::PointKey< double > averagePosition
A PersistableFactory for KernelPsf and its subclasses.
void saveCatalog(BaseCatalog const &catalog)
Save a catalog in the archive.
A polymorphic base class for representing an image's Point Spread Function.
Kernels are used for convolution with MaskedImages and (eventually) Images.
afw::table::Schema schema
virtual void write(OutputArchiveHandle &handle) const
Write the object to one or more catalogs.
virtual std::string getPersistenceName() const
Return the unique name used to persist this object and look up its factory.