Class ov::reference::GetOriginalCoordinate#
-
class GetOriginalCoordinate#
Calculation of the source coordinate using the resized coordinate.
Public Functions
-
inline GetOriginalCoordinate()#
Constructs calculation of a nearest pixel in the default mode.
-
inline GetOriginalCoordinate(Transform_mode mode)#
Constructs calculation of the source coordinate.
- Parameters:
mode – the mode of the calculation of the source coordinate.
-
inline float operator()(float x_resized, float x_scale, float length_resized, float length_original) const#
Performing the source coordinate calculation.
- Parameters:
x_resized – resized coordinate
x_scale – scale for the considered axis
length_resized – length of the resized axis
length_original – original length of the axis
- Returns:
the source coordinate
-
inline GetOriginalCoordinate()#