LSSTApplications  18.1.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 }
double indexToPosition(double ind)
Convert image index to image position.
Definition: ImageUtils.h:55
int positionToIndex(double pos)
Convert image position to nearest integer index.
Definition: ImageUtils.h:69