28 #ifndef LSST_AFW_IMAGE_IMAGEUTILS_H 29 #define LSST_AFW_IMAGE_IMAGEUTILS_H 71 return static_cast<int>(
std::floor(pos + 0.5 - PixelZeroPos));
89 double roundedIndex =
std::floor(fullIndex + 0.5);
90 residual = fullIndex - roundedIndex;
91 return static_cast<int>(roundedIndex);
110 #endif // LSST_AFW_IMAGE_IMAGEUTILS_H double indexToPosition(double ind)
Convert image index to image position.
int positionToIndex(double pos)
Convert image position to nearest integer index.
A base class for image defects.
Backwards-compatibility support for depersisting the old Calib (FluxMag0/FluxMag0Err) objects...
const double PixelZeroPos
position of center of pixel 0