generate_shifts# deepinv.physics.phase_retrieval.generate_shifts(img_size, n_img=25, fov=None)[source]# Generates the array of probe shifts across the image. Based on probe radius and field of view. Parameters: img_size – Size of the image. n_img (int) – Number of shifts (must be a perfect square). fov (int) – Field of view for shift computation. Return np.ndarray: Array of (x, y) shifts. Examples using generate_shifts:# Ptychography phase retrieval Ptychography phase retrieval