pysdic.Image.image_points_to_pixel_points#

Image.image_points_to_pixel_points(image_points)[source]#

Convert image points to pixel points.

Only swap the \(x\) and \(y\) coordinates of the image points to convert them to pixel points.

Note

  • The image points are defined in the image coordinate system \((x, y)\).

  • The pixel points are defined in the pixel coordinate system \((u, v)\).

Note

The image_points will be converted to numpy.float64 type.

Parameters:

image_points (ArrayLike) – A 2D array of shape (…, 2) representing the image points in image coordinate system \((x, y)\).

Returns:

A 2D array of shape (…, 2) representing the pixel points in pixel coordinate system (rows, columns).

Return type:

numpy.ndarray