build_probe#

deepinv.physics.phase_retrieval.build_probe(img_size, type='disk', probe_radius=10, device='cpu')[source]#

Builds a probe based on the specified type and radius.

Parameters:
  • img_size (tuple) – Shape of the input image.

  • type (str) – Type of probe shape, e.g., β€œdisk”.

  • probe_radius (int) – Radius of the probe shape.

  • device (torch.device) – Device β€œcpu” or β€œgpu”.

Returns:

Tensor representing the constructed probe.

Examples using build_probe:#

Ptychography phase retrieval

Ptychography phase retrieval