Function lsst::afw::image::positionToIndex(double)

Function Documentation

int lsst::afw::image::positionToIndex(double pos)

Parameters
  • pos: image position

Convert image position to nearest integer index

The LSST indexing convention is:

  • the index of the bottom left pixel is 0,0

  • the position of the center of the bottom left pixel is PixelZeroPos, PixelZeroPos

Return

nearest integer index