lsst.meas.algorithms  13.0-12-gfeff4b0+9
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
binnedWcs.cc
Go to the documentation of this file.
1 /*
2  * LSST Data Management System
3  *
4  * This product includes software developed by the
5  * LSST Project (http://www.lsst.org/).
6  * See the COPYRIGHT file
7  *
8  * This program is free software: you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation, either version 3 of the License, or
11  * (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the LSST License Statement and
19  * the GNU General Public License along with this program. If not,
20  * see <https://www.lsstcorp.org/LegalNotices/>.
21  */
22 #include "pybind11/pybind11.h"
23 
25 
26 namespace py = pybind11;
27 using namespace pybind11::literals;
28 
29 namespace lsst {
30 namespace meas {
31 namespace algorithms {
32 
33 PYBIND11_PLUGIN(binnedWcs) {
34  py::module mod("binnedWcs");
35 
36  py::class_<BinnedWcs, std::shared_ptr<BinnedWcs>, afw::image::Wcs> clsBinnedWcs(mod, "BinnedWcs");
37 
38  /* Constructors */
39  clsBinnedWcs.def(
40  py::init<std::shared_ptr<afw::image::Wcs>, unsigned int, unsigned int, afw::geom::Point2I>(),
41  "parent"_a, "xBin"_a, "yBin"_a, "xy0"_a);
42 
43  /* Members */
44  clsBinnedWcs.def("clone", &BinnedWcs::clone);
45  clsBinnedWcs.def("upcast", &BinnedWcs::upcast);
46  clsBinnedWcs.def("getParent", &BinnedWcs::getParent);
47  clsBinnedWcs.def("getXBin", &BinnedWcs::getXBin);
48  clsBinnedWcs.def("getYBin", &BinnedWcs::getYBin);
49  clsBinnedWcs.def("getXY0", &BinnedWcs::getXY0);
50  clsBinnedWcs.def("hasDistortion", &BinnedWcs::hasDistortion);
51  clsBinnedWcs.def("isPersistable", &BinnedWcs::isPersistable);
52  clsBinnedWcs.def("flipImage", &BinnedWcs::flipImage);
53  clsBinnedWcs.def("rotateImageBy90", &BinnedWcs::rotateImageBy90);
54  clsBinnedWcs.def("getFitsMetadata", &BinnedWcs::getFitsMetadata);
55  clsBinnedWcs.def("getBinnedToOriginal", &BinnedWcs::getBinnedToOriginal);
56  clsBinnedWcs.def("getOriginalToBinned", &BinnedWcs::getOriginalToBinned);
57 
58  return mod.ptr();
59 }
60 
61 } // algorithms
62 } // meas
63 } // lsst
PYBIND11_PLUGIN(binnedWcs)
Definition: binnedWcs.cc:33