tensorflow_mri.meshgrid

meshgrid(*args)[source]

Return coordinate matrices from coordinate vectors.

Make N-D coordinate arrays for vectorized evaluations of N-D scalar/vector fields over N-D grids, given one-dimensional coordinate arrays x1, x2, ..., xn.

Note

Similar to tf.meshgrid, but uses matrix indexing and returns a stacked tensor (along axis -1) instead of a list of tensors.

Parameters

*argsTensors with rank 1.

Returns

A Tensor of shape [M1, M2, ..., Mn, N], where N is the number of tensors in args and Mi = tf.size(args[i]).