MCPcopy Create free account
hub / github.com/colmap/colmap / InterpolateNearestNeighbor

Method InterpolateNearestNeighbor

src/colmap/sensor/bitmap.cc:234–239  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

232}
233
234std::optional<BitmapColor<uint8_t>> Bitmap::InterpolateNearestNeighbor(
235 const double x, const double y) const {
236 const int xx = static_cast<int>(std::round(x));
237 const int yy = static_cast<int>(std::round(y));
238 return GetPixel(xx, yy);
239}
240
241std::optional<BitmapColor<float>> Bitmap::InterpolateBilinear(
242 const double x, const double y) const {

Callers 2

FuseMethod · 0.80
TESTFunction · 0.80

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.64