Function that performs the resampling, specified as a function
handle. You call this function with the following interface:
B = resample_fcn(A,M,TDIMS_A,TDIMS_B,FSIZE_A,FSIZE_B,F,R)
For more information about the input arguments to this function,
see the help for tformarray
.
The argument M
is an array that maps the transform
subscript space of B
to the transform subscript
space of A
. If A
has N
transform
dimensions (N = length(TDIMS_A))
and B
has P
transform
dimensions (P = length(TDIMS_B))
, then ndims(M)
= P + 1
, if N > 1
and P
if N
== 1
, and size(M,P + 1) = N
.
The first P
dimensions of M
correspond
to the output transform space, permuted according to the order in
which the output transform dimensions are listed in TDIMS_B
.
(In general TDIMS_A
and TDIMS_B
need
not be sorted in ascending order, although some resamplers can impose
such a limitation.) Thus, the first P
elements
of size(M)
determine the sizes of the transform
dimensions of B
. The input transform coordinates
to which each point is mapped are arrayed across the final dimension
of M
, following the order given in TDIMS_A
. M
must
be double
. FSIZE_A
and FSIZE_B
are
the full sizes of A
and B
, padded
with 1
's as necessary to be consistent with TDIMS_A
, TDIMS_B
,
and size(A)
.
Data Types: function_handle