tps_grid_2d_plot#

ktch.plot.tps_grid_2d_plot(x_reference: npt.ArrayLike, x_target: npt.ArrayLike, grid_size: str | float = 'auto', outer: float = 0.1, n_grid_inner: int = 10, ax: object | None = None) object[source]#

Plot the thin-plate spline 2D warped grid.

Parameters:
x_referencearray-like, shape (n_landmarks, n_dim)

Reference configuration.

x_targetarray-like, shape (n_landmarks, n_dim)

Target configuration.

grid_sizestr/float, optional

Grid size, by default “auto”

outerfloat, optional

Outer range of x_reference covered by the grid, by default 0.1

n_grid_innerint, optional

Number of inner points on each grid, by default 10

axmatplotlib.axes.Axes, optional

Pre-existing axes for the plot. Otherwise, a new figure and axes are created.

Returns:
axmatplotlib.axes.Axes

Matplotlib axes.

Raises:
ImportError

If matplotlib is not installed.