Class ov::reference::GetNearestPixel#

class GetNearestPixel#

Calculation of nearest pixel.

Public Functions

inline GetNearestPixel()#

Constructs calculation of a nearest pixel in the default mode.

inline GetNearestPixel(Nearest_mode mode)#

Constructs calculation of nearest pixel for the specified mode.

Parameters:

mode – the mode of the calculation of the nearest pixel

inline int64_t operator()(float original, bool is_downsample) const#

Performing the nearest pixel calculation.

Parameters:
  • original – original coordinate

  • is_downsample – true if it has downsample and false otherwise

Returns:

the nearest pixel