pysdic.Image.evaluate_at_image_points#
- Image.evaluate_at_image_points(image_points, derivatives=((0, 0),))[source]#
Evaluate the image and/or several of its derivatives at given
image_points(ie \((x, y)\)-axis), in a single pass.For each order \((d_x, d_y)\) of
derivatives, the derivative \(\frac{\partial^{d_x + d_y} I}{\partial x^{d_x} \partial y^{d_y}}\) is returned (the image itself with \((0, 0)\)). Crossed derivatives are allowed.Equivalent to
evaluate_at_pixel_points()with swapped coordinates and swapped orders \((d_u, d_v) = (d_y, d_x)\).- Parameters:
image_points (ArrayLike) – The image points with shape \((N_p, 2)\), each point represented by its (x, y) coordinates.
derivatives (ArrayLike, optional (default:
((0, 0),))) – The orders \((d_x, d_y)\) to compute, shape \((R, 2)\), with \(0 \leq d_x < kv\) and \(0 \leq d_y < ku\). For example((0, 0), (1, 0), (0, 1))for the image and its gradient \((\partial_x I, \partial_y I)\).
- Returns:
\(R\) arrays in float64 dtype, one per order of
derivatives(in the same order), with shape \((N_p,)\) for a grayscale image or \((N_p, C)\) for a color image.- Return type:
Tuple[numpy.ndarray, …]
- Raises:
ValueError – If the interpolation function is not constructed or a derivative order is out of range.