spyrit.core.recon.DCNet.reconstruct_pinv
- DCNet.reconstruct_pinv(y: tensor) tensor[source]
Reconstruct an image from measurements without denoising.
This method sucessively applies the preprocessing operator
prepand the Tikhonov regularization operatortikhoto the input measurement vectorsx.- Args:
y: raw measurement vectors. Have shape \((b, c, m)\)- Returns:
torch.tensor: Reconstructed images. Have shape \((b,c,h,w)\)
- Example:
>>> from spyrit.core.meas import HadamSplit2d >>> from spyrit.core.prep import UnsplitRescale >>> from spyrit.core.recon import DCNet >>> import torch >>> acqu = HadamSplit2d(32) >>> prep = UnsplitRescale() >>> sigma = torch.eye(32*32,32*32) >>> dcnet = DCNet(acqu, prep, sigma) >>> y = torch.randn(10, 1, 2048) >>> z = dcnet.reconstruct_pinv(y) >>> print(z.shape) torch.Size([10, 1, 32, 32])