23 #include <pybind11/pybind11.h>
29 namespace py = pybind11;
31 using namespace lsst::afw::geom::ellipses;
34 py::module mod(
"_pixelRegion",
"Python wrapper for afw _pixelRegion library");
36 py::class_<PixelRegion> clsPixelRegion(mod,
"PixelRegion");
39 clsPixelRegion.def(py::init<Ellipse const &>());
44 clsPixelRegion.def(
"__iter__",
45 [](
const PixelRegion &
self) {
return py::make_iterator(
self.begin(),
self.end()); },
46 py::keep_alive<0, 1>() );
Span const getSpanAt(int y) const
Box2I const & getBBox() const