spyrit.core.recon.TikhoNet.reconstruct_pinv
- TikhoNet.reconstruct_pinv(y)[source]
Reconstruct an image from measurements without denoising.
This method sucessively applies the preprocessing operator
prepand the Tikhonov regularization operatortikhoto the input measurement vectorsx.Important
The measurements passed as input must NOT be preprocessed.
- Args:
y: raw measurement vectors. Have shape \((b, c, m)\)- Returns:
torch.tensor: Reconstructed images. Have shape \((b,c,h,w)\) if
reshape_outputis True in thekwargsdictionary (default) or \((b,c,hw)\) otherwise.- Example:
>>> import spyrit >>> acqu = spyrit.core.meas.HadamSplit2d(8) >>> prep = spyrit.core.prep.UnsplitRescale() >>> sigma = torch.ones(64, 64) >>> tikho = TikhoNet(acqu, prep, sigma) >>> x = torch.rand(10, 1, 8, 8) >>> y = acqu(x) >>> z = tikho.reconstruct_pinv(y) >>> print(z.shape) torch.Size([10, 1, 8, 8])