Click or drag to resize

InterpolationFlags Enumeration

Interpolation algorithm

Namespace:  OpenCvSharp
Assembly:  OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0
Syntax
[FlagsAttribute]
public enum InterpolationFlags
Members
  Member nameValueDescription
Nearest0 Nearest-neighbor interpolation,
Linear1 Bilinear interpolation (used by default)
Cubic2 Bicubic interpolation.
Area3 Resampling using pixel area relation. It is the preferred method for image decimation that gives moire-free results. In case of zooming it is similar to CV_INTER_NN method.
Lanczos44 Lanczos interpolation over 8x8 neighborhood
LinearExact5 Bit exact bilinear interpolation
Max7 mask for interpolation codes
WarpFillOutliers8 Fill all the destination image pixels. If some of them correspond to outliers in the source image, they are set to fillval.
WarpInverseMap16 Indicates that matrix is inverse transform from destination image to source and, thus, can be used directly for pixel interpolation. Otherwise, the function finds the inverse transform from map_matrix.
See Also