LSSTApplications  20.0.0
LSSTDataManagementBasePackage
Functions
imageUtils.cc File Reference
#include "pybind11/pybind11.h"
#include "lsst/afw/image/ImageUtils.h"

Go to the source code of this file.

Functions

 PYBIND11_MODULE (imageUtils, mod)
 

Function Documentation

◆ PYBIND11_MODULE()

PYBIND11_MODULE ( imageUtils  ,
mod   
)

Definition at line 31 of file imageUtils.cc.

31  {
32  mod.def("indexToPosition", indexToPosition);
33  mod.def("positionToIndex", (int (*)(double))positionToIndex);
34  mod.def("positionToIndex", (std::pair<int, double>(*)(double const, bool))positionToIndex);
35 }
lsst::afw::image::positionToIndex
int positionToIndex(double pos)
Convert image position to nearest integer index.
Definition: ImageUtils.h:69
std::pair
lsst::afw::image::indexToPosition
double indexToPosition(double ind)
Convert image index to image position.
Definition: ImageUtils.h:55