23 #include <pybind11/pybind11.h> 30 namespace py = pybind11;
38 py::module mod(
"_gaussianPsf",
"Python wrapper for afw _gaussianPsf library");
40 table::io::python::declarePersistableFacade<GaussianPsf>(mod,
"GaussianPsf");
43 clsGaussianPsf(mod,
"GaussianPsf");
46 clsGaussianPsf.def(py::init<int, int, double>(),
"width"_a,
"height"_a,
"sigma"_a);
47 clsGaussianPsf.def(py::init<geom::Extent2I const &, double>(),
"dimensions"_a,
"sigma"_a);
51 clsGaussianPsf.def(
"resized", &GaussianPsf::resized,
"width"_a,
"height"_a);
52 clsGaussianPsf.def(
"getDimensions", &GaussianPsf::getDimensions);
53 clsGaussianPsf.def(
"getSigma", &GaussianPsf::getSigma);
54 clsGaussianPsf.def(
"isPersistable", &GaussianPsf::isPersistable);
A base class for image defects.
A polymorphic base class for representing an image's Point Spread Function.
PYBIND11_PLUGIN(_gaussianPsf)