tps_raw | R Documentation |
tps_raw
calculates deformation grids and
returns position of sampled points on it.
tps_raw(fr, to, amp = 1, over = 1.2, grid.size = 15)
fr |
the reference |
to |
the target |
amp |
an amplification factor of differences between |
over |
|
grid.size |
|
a list with two components: grid
the xy coordinates of sampled
points along the grid; dim
the dimension of the grid.
Other thin plate splines:
tps2d()
,
tps_arr()
,
tps_grid()
,
tps_iso()
ms <- MSHAPES(efourier(bot, 10), "type")
b <- ms$shp$beer
w <- ms$shp$whisky
g <- tps_raw(b, w)
ldk_plot(g$grid)
# a wavy plot
ldk_plot(g$grid, pch=NA)
cols_ids <- 1:g$dim[1]
for (i in 1:g$dim[2]) lines(g$grid[cols_ids + (i-1)*g$dim[1], ])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.