bartorch.iwt#
- bartorch.iwt(input, oshape, axes, *, wavelet='dau2')#
Wavelet synthesis along
axes: coefficients fromfwt()back to samples.bart wavelet -aruns the synthesis filter bank, which invertsfwt()(iwt(fwt(x)) == x) for every wavelet. It is a left inverse, not the adjoint, although BART’s wavelet linop uses it as its adjoint: synthesis ignores the reflected samples the analysis read (wavelet_up3,src/wavelet/wavelet.c). The two coincide only for"haar"when every level’s length is even, where the transform is orthogonal."cdf97"runsbart cdf97 -i, the exact inverse of a biorthogonal transform that is not orthogonal.- Parameters:
input (torch.Tensor) – Coefficients, laid out as
fwt()returns them.oshape (tuple of int) – Shape of the result, C order, one entry per axis of
input; the axes not inaxesmust matchinput.axes (int or tuple of int) – Transformed axes, as indices into
oshape.wavelet ({"haar", "dau2", "cdf44", "cdf97"}) – As for
fwt().