namespace mrpt::img::detail
Overview
namespace detail { // global functions void remap_bilinear( const CImage& in, CImage& out, const float* mapx, const float* mapy, int out_w, int out_h ); } // namespace detail
Global Functions
void remap_bilinear( const CImage& in, CImage& out, const float* mapx, const float* mapy, int out_w, int out_h )
Apply a bilinear-interpolation remap to an image.
mapx[row * out_w + col] and mapy[…] give the source (x,y) float pixel coordinates for each output pixel. Out-of-bounds source pixels produce black (zero) output.
Works for 1-channel (grayscale), 3-channel (RGB), and 4-channel (RGBA) 8-bit images.