Functions for image shifting. More...
Functions | |
SIMD_API void | SimdShiftBilinear (const uint8_t *src, size_t srcStride, size_t width, size_t height, size_t channelCount, const uint8_t *bkg, size_t bkgStride, const double *shiftX, const double *shiftY, size_t cropLeft, size_t cropTop, size_t cropRight, size_t cropBottom, uint8_t *dst, size_t dstStride) |
Performs shifting of input image with using bilinear interpolation. More... | |
template<template< class > class A> | |
SIMD_INLINE void | ShiftBilinear (const View< A > &src, const View< A > &bkg, const Point< double > &shift, const Rectangle< ptrdiff_t > &crop, View< A > &dst) |
Performs shifting of input image with using bilinear interpolation. More... | |
Detailed Description
Functions for image shifting.
Function Documentation
◆ SimdShiftBilinear()
void SimdShiftBilinear | ( | const uint8_t * | src, |
size_t | srcStride, | ||
size_t | width, | ||
size_t | height, | ||
size_t | channelCount, | ||
const uint8_t * | bkg, | ||
size_t | bkgStride, | ||
const double * | shiftX, | ||
const double * | shiftY, | ||
size_t | cropLeft, | ||
size_t | cropTop, | ||
size_t | cropRight, | ||
size_t | cropBottom, | ||
uint8_t * | dst, | ||
size_t | dstStride | ||
) |
Performs shifting of input image with using bilinear interpolation.
All images must have the same width, height and format (8-bit gray, 16-bit UV, 24-bit BGR or 32-bit BGRA).
- Note
- This function has a C++ wrappers: Simd::ShiftBilinear(const View<A> & src, const View<A> & bkg, const Point<double> & shift, const Rectangle<ptrdiff_t> & crop, View<A> & dst).
- Parameters
-
[in] src - a pointer to pixels data of the foreground input image. [in] srcStride - a row size of the input image. [in] width - an image width. [in] height - an image height. [in] channelCount - a channel count. [in] bkg - a pointer to pixels data of the background input image. [in] bkgStride - a row size of the background image. [in] shiftX - an image shift along x axis. [in] shiftY - an image shift along y axis. [in] cropLeft - a crop left side. [in] cropTop - a crop top side. [in] cropRight - a crop right side. [in] cropBottom - a crop bottom side. [out] dst - a pointer to pixels data of the output image. [in] dstStride - a row size of the output image.
◆ ShiftBilinear()
void ShiftBilinear | ( | const View< A > & | src, |
const View< A > & | bkg, | ||
const Point< double > & | shift, | ||
const Rectangle< ptrdiff_t > & | crop, | ||
View< A > & | dst | ||
) |
Performs shifting of input image with using bilinear interpolation.
All images must have the same width, height and format (8-bit gray, 16-bit UV, 24-bit BGR or 32-bit BGRA).
- Note
- This function is a C++ wrapper for function SimdShiftBilinear.
- Parameters
-
[in] src - a foreground input image. [in] bkg - a background input image. [in] shift - an image shift. [in] crop - a crop rectangle. [out] dst - an output image.