23 #include "pybind11/pybind11.h"
28 namespace py = pybind11;
29 using namespace py::literals;
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 &, DistortedTanWcs::Transform const &>(),
"tanWcs"_a,
49 "pixelsToTanPixels"_a);
55 cls.def(
"shiftReferencePixel", &DistortedTanWcs::shiftReferencePixel,
"dx"_a,
"dy"_a);
56 cls.def(
"hasDistortion", &DistortedTanWcs::hasDistortion);
57 cls.def(
"getTanWcs", &DistortedTanWcs::getTanWcs);
58 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)
std::shared_ptr< ImageT > rotateImageBy90(ImageT const &image, int nQuarter)
Rotate an image by an integral number of quarter turns.