ktch.landmark.tps_grid_2d_plot#

ktch.landmark.tps_grid_2d_plot(x_reference, x_target, grid_size='auto', outer=0.1, n_grid_inner=10, ax=None)[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 matplotlib axes for the plot. Otherwise, call matplotlib.pyplot.gca() internally.

Returns:
axmatplotlib.axes.Axes

Matplotlib axes.