STE-Industries: utilities testing
Interpolator.inl
Go to the documentation of this file.
1 
14 namespace GraphicSpace
15 {
16 
40 
41 inline uint_least32_t Interpolator::operator () (unsigned int Row,
42  unsigned int Column, uint_least32_t UpperLeft,
43  uint_least32_t UpperRight,
44  uint_least32_t LowerLeft,
45  uint_least32_t LowerRight) const noexcept
46  {
47  assert(Row < Size);
48  assert(Column < Size);
49  return (UpperLeft * InterpolationTable [Row] [Column].UpperLeft +
50  UpperRight * InterpolationTable [Row] [Column].UpperRight +
51  LowerLeft * InterpolationTable [Row] [Column].LowerLeft +
52  LowerRight * InterpolationTable [Row] [Column].LowerRight) /
53  SquaredSize;
54  }
55 
56 }
GraphicSpace
Definition: Bitmap.cpp:29
GraphicSpace::Interpolator::operator()
uint_least32_t operator()(unsigned int Row, unsigned int Column, uint_least32_t UpperLeft, uint_least32_t UpperRight, uint_least32_t LowerLeft, uint_least32_t LowerRight) const noexcept
Definition: Interpolator.inl:41