Resampling.adjoint

property Resampling.adjoint

Return an (approximate) adjoint.

The result is only exact if the interpolation and sampling operators of the underlying spaces match exactly.

Returns
adjointResampling

Resampling operator defined in the opposite direction.

Examples

Create resampling operator and inverse:

>>> coarse_discr = odl.uniform_discr(0, 1, 3)
>>> fine_discr = odl.uniform_discr(0, 1, 6)
>>> resampling = odl.Resampling(coarse_discr, fine_discr, 'nearest')
>>> resampling_inv = resampling.inverse

The inverse is a proper left inverse if the resampling goes from a coarser to a finer sampling:

>>> x = [0, 1, 0]
>>> print(resampling_inv(resampling(x)))
[ 0.,  1.,  0.]

However, it can fail in the other direction:

>>> y = [0, 0, 0, 1, 0, 0]
>>> print(resampling(resampling_inv(y)))
[ 0.,  0.,  1.,  1.,  0.,  0.]