atomscale.core.utils.normalize_pixel_dimensions#
- atomscale.core.utils.normalize_pixel_dimensions(points: ndarray[tuple[Any, ...], dtype[_ScalarT]], image_shape: tuple[int, int]) ndarray[tuple[Any, ...], dtype[_ScalarT]][source]
Rescale pixel dimensions to a new image shape.
- Parameters:
points (NDArray) – Numpy array containing a list of points with columns width, height.
image_shape (tuple[int, int]) – Image shape.
- Returns:
Numpy array containing the rescaled points.
- Return type:
NDArray