Loading [MathJax]/extensions/tex2jax.js
LSST Applications g0485b4d2cb+45260c2012,g0fba68d861+90dd06f399,g1ec0fe41b4+eb5f8a2046,g1fd858c14a+551e8cb373,g2440f9efcc+8c5ae1fdc5,g35bb328faa+8c5ae1fdc5,g4d2262a081+ba77bf3834,g53246c7159+8c5ae1fdc5,g56a49b3a55+c2ace9aa91,g60b5630c4e+9860a7649d,g65f11fe441+7edbc1d107,g67b6fd64d1+0750dd6554,g6ba5f4ee81+86bfe0b13d,g78460c75b0+7e33a9eb6d,g786e29fd12+668abc6043,g8352419a5c+8c5ae1fdc5,g8852436030+7a386a17a7,g89139ef638+0750dd6554,g94187f82dc+9860a7649d,g989de1cb63+0750dd6554,g9d31334357+9860a7649d,g9f33ca652e+e619319a72,gabe3b4be73+8856018cbb,gabf8522325+7d313c7892,gb1101e3267+e9bfafe6b0,gb89ab40317+0750dd6554,gc91f06edcd+1820ccfa51,gcef618a4dd+9860a7649d,gcf25f946ba+7a386a17a7,gd6cbbdb0b4+d675535a7f,gdb8242c116+6d284a1357,gde0f65d7ad+2573be6663,ge278dab8ac+edfcd09300,ge410e46f29+0750dd6554,gf35d7ec915+97dd712d81,gf5e32f922b+8c5ae1fdc5,gf67bdafdda+0750dd6554,gf6800124b1+167e910d43,w.2025.20
LSST Data Management Base Package
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
pessimisticPatternMatcherUtils.cc
Go to the documentation of this file.
1// -*- LSST-C++ -*-
2
3/*
4 * This file is part of meas_astrom.
5 *
6 * Developed for the LSST Data Management System.
7 * This product includes software developed by the LSST Project
8 * (https://www.lsst.org).
9 * See the COPYRIGHT file at the top-level directory of this distribution
10 * for details of code ownership.
11 *
12 * This program is free software: you can redistribute it and/or modify
13 * it under the terms of the GNU General Public License as published by
14 * the Free Software Foundation, either version 3 of the License, or
15 * (at your option) any later version.
16 *
17 * This program is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
21 *
22 * You should have received a copy of the GNU General Public License
23 * along with this program. If not, see <https://www.gnu.org/licenses/>.
24 */
25
26#include "pybind11/pybind11.h"
28#include "pybind11/stl.h"
29#include "pybind11/eigen.h"
30#include "ndarray/pybind11.h"
31
33
34namespace py = pybind11;
35using namespace pybind11::literals;
36
37namespace lsst {
38namespace meas {
39namespace astrom {
40
42 wrappers.wrapType(py::class_<PatternResult>(wrappers.module, "PatternResult"), [](auto &mod, auto &cls) {
43 cls.def_readonly("candidate_pairs", &PatternResult::candidate_pairs);
44 cls.def_readonly("shift_rot_matrix", &PatternResult::shift_rot_matrix);
45 cls.def_readonly("cos_shift", &PatternResult::cos_shift);
46 cls.def_readonly("sin_rot", &PatternResult::sin_rot);
47 cls.def_readonly("success", &PatternResult::success);
48 mod.def("construct_pattern_and_shift_rot_matrix", &construct_pattern_and_shift_rot_matrix,
49 "src_pattern_array"_a, "src_delta_array"_a, "src_dist_array"_a, "dist_array"_a, "id_array"_a,
50 "reference_array"_a, "n_match"_a, "max_cos_theta_shift"_a, "max_cos_rot_sq"_a, "max_dist_rad"_a);
51 });
52}
53
54} // namespace astrom
55} // namespace meas
56} // namespace lsst
A helper class for subdividing pybind11 module across multiple translation units (i....
Definition python.h:242
PyType wrapType(PyType cls, ClassWrapperCallback function, bool setModuleName=true)
Add a type (class or enum) wrapper, deferring method and other attribute definitions until finish() i...
Definition python.h:391
pybind11::module module
The module object passed to the PYBIND11_MODULE block that contains this WrapperCollection.
Definition python.h:448
void wrapPessimisticPatternMatcherUtils(WrapperCollection &wrappers)