superpose¶
- dnois.optics.superpose(obj: Tensor, psf: Tensor) Tensor ¶
Point-wise image formation model. The image is the superposition of PSFs of all object points.
Note that both
obj
andpsf
can be real representing incoherent imaging and complex representing coherent imaging. If just one of them is complex, the other will be cast as complex. The blurred image is real if and only if they are both real.- Parameters:
obj (Tensor) – A tensor of shape \((\cdots,H_o,W_o)\).
psf (Tensor) – A tensor of shape \((\cdots,H_o,W_o,H_p,W_p)\).
- Returns:
A tensor of shape \((\cdots,H_o,W_o)\).
- Return type:
Tensor