16 return std::pair<float, float>(newxbin, newybin);
21 const auto& thepixel =
pixel(
p);
26 int row =
static_cast<int>(thepixel.first);
33 int col =
static_cast<int>(thepixel.second);
42 <<
"Incorrect pixel id! r/c " <<
std::fixed << std::setw(2) << row <<
" / " <<
std::fixed << std::setw(2) <<
col 44 <<
" for LocalPoint " <<
std::fixed << std::setw(8) << std::setprecision(4) <<
p.x() <<
" , " <<
std::fixed 45 << std::setw(8) << std::setprecision(4) <<
p.y() <<
" pixel " <<
std::fixed << std::setw(8)
46 << std::setprecision(4) << thepixel.first <<
" , " <<
std::fixed << std::setw(8) << std::setprecision(4)
50 return std::pair<int, int>(row,
col);
56 const auto& thepixel =
pixel(
p);
57 const int ixbin =
static_cast<int>(thepixel.first);
58 const int iybin =
static_cast<int>(thepixel.second);
59 const float fractionX = thepixel.first - ixbin;
60 const float fractionY = thepixel.second - iybin;
bool isInPixel(const LocalPoint &p) const
Point3DBase< Scalar, LocalTag > LocalPoint
LocalError localError(const MeasurementPoint &, const MeasurementError &) const override
std::pair< float, float > pixel(const LocalPoint &p) const override
float localX(const float mpX) const override
float localY(const float mpY) const override
std::pair< int, int > pixelIndex(const LocalPoint &p) const
LocalPoint localPosition(const MeasurementPoint &mp) const override
MeasurementError measurementError(const LocalPoint &, const LocalError &) const override