22 #include "pybind11/pybind11.h"
23 #include "pybind11/stl.h"
27 #include "numpy/arrayobject.h"
28 #include "ndarray/pybind11.h"
32 namespace py = pybind11;
33 using namespace pybind11::literals;
40 py::module::import(
"lsst.afw.math");
41 py::module::import(
"lsst.pex.policy");
43 py::module mod(
"basisLists");
46 if (_import_array() < 0) {
47 PyErr_SetString(PyExc_ImportError,
"numpy.core.multiarray failed to import");
54 "borderPenalty"_a,
"fitForBackground"_a);
56 "borderPenalty"_a,
"fitForBackground"_a);
lsst::afw::math::KernelList renormalizeKernelList(lsst::afw::math::KernelList const &kernelListIn)
Renormalize a list of basis kernels.
Eigen::MatrixXd makeForwardDifferenceMatrix(int width, int height, std::vector< int > const &orders, float borderPenalty, bool fitForBackground)
Build a forward difference regularization matrix for Delta function kernels.
Eigen::MatrixXd makeRegularizationMatrix(lsst::pex::policy::Policy policy)
Build a regularization matrix for Delta function kernels.
Eigen::MatrixXd makeCentralDifferenceMatrix(int width, int height, int stencil, float borderPenalty, bool fitForBackground)
Build a central difference Laplacian regularization matrix for Delta function kernels.
lsst::afw::math::KernelList makeDeltaFunctionBasisList(int width, int height)
Build a set of Delta Function basis kernels.
Subroutines associated with generating, normalising, and regularising Basis functions.
PYBIND11_PLUGIN(basisLists)
lsst::afw::math::KernelList makeAlardLuptonBasisList(int halfWidth, int nGauss, std::vector< double > const &sigGauss, std::vector< int > const °Gauss)
Build a set of Alard/Lupton basis kernels.