23 #include "pybind11/pybind11.h" 28 namespace py = pybind11;
36 using PyDistortedTanWcs = py::class_<DistortedTanWcs, std::shared_ptr<DistortedTanWcs>, TanWcs>;
39 py::module mod(
"distortedTanWcs");
41 py::module::import(
"lsst.afw.geom");
42 py::module::import(
"lsst.afw.image.tanWcs");
45 PyDistortedTanWcs
cls(mod,
"DistortedTanWcs");
48 cls.def(py::init<TanWcs const &, geom::XYTransform const &>(),
"tanWcs"_a,
"pixelsToTanPixels"_a);
54 cls.def(
"shiftReferencePixel", &DistortedTanWcs::shiftReferencePixel,
"dx"_a,
"dy"_a);
55 cls.def(
"hasDistortion", &DistortedTanWcs::hasDistortion);
56 cls.def(
"getTanWcs", &DistortedTanWcs::getTanWcs);
57 cls.def(
"getPixelToTanPixel", &DistortedTanWcs::getPixelToTanPixel);
std::shared_ptr< ImageT > flipImage(ImageT const &inImage, bool flipLR, bool flipTB)
Flip an image left–right and/or top–bottom.
PYBIND11_PLUGIN(_cameraPoint)
A base class for image defects.
std::shared_ptr< ImageT > rotateImageBy90(ImageT const &image, int nQuarter)
Rotate an image by an integral number of quarter turns.