pysdic.Image.get_interpolation_function#

Image.get_interpolation_function(channel=1)[source]#

Get the scipy interpolation function for the image.

The interpolation function is an object scipy.interpolate.RectBivariateSpline with cubic splines (kx=3, ky=3).

The interpolation function is used to evaluate pixel values at arbitrary points in the image.

Warning

The interpolation function takes pixel_points as input, which are a swap of the camera’s image points ! See documentation of pycvcam (Artezaru/pycvcam) for more details on the name and usage of these points.

Parameters:

channel (Integral, optional) – The channel index for color images. Default to 1 (the first channel). For a grayscale image, this parameter must be 1.

Returns:

The interpolation function for the image, or None if not set.

Return type:

Optional[scipy.interpolate.RectBivariateSpline]