k-Wave Toolbox |
![]() ![]() |
Interpolate a set of Cartesian points onto a binary grid
[grid_data, order_index, reorder_index] = cart2grid(kgrid, cart_data)
cart2grid
interpolates the set of Cartesian points defined by cart_data
onto a binary matrix defined by the k-space grid structure kgrid
using nearest neighbour interpolation.
|
k-Wave grid structure returned by |
|
1 x N, 2 x N, or 3 x N (for 1, 2, and 3 dimensions) array of Cartesian sensor points |
|
binary grid with the same dimensions as the k-space input grid |
|
the order that the Cartesian points appear in |
|
the order that the binary points in |
grid2cart
, interpCartData
, makeGrid
![]() |
attenuationWater | db2neper | ![]() |
© 2009, 2010 Bradley Treeby and Ben Cox.