holotomo.solver_tomo

Module for tomography.

Functions:

SolverTomo

class holotomo.solver_tomo.SolverTomo(*args: Any, **kwargs: Any)[source]

Bases: tomo

Base class for tomography solvers using the USFFT method on GPU. This class is a context manager which provides the basic operators required to implement a tomography solver. It also manages memory automatically, and provides correct cleanup for interruptions or terminations.

Parameters
  • ntheta (int) – The number of projections.

  • n, nz (int) – The pixel width and height of the projection.

  • pnz (int) – The number of pair slice partitions to process together simultaneously (multiple of nz)

adj_tomo(data, gpu=0, filter=False)[source]

Adjoint Radon transform (R^*)

adj_tomo_batch(data)[source]

Batch of adjoint Tomography transform (R*)

cg_tomo(data, init, piter)[source]

Conjugate gradients method for tomography

cg_tomo_batch(data, init, piter)[source]

Batch of Holography transforms

fwd_tomo(u, gpu=0)[source]

Radon transform (R)

fwd_tomo_batch(u)[source]

Batch of Tomography transform (R)

Line search for the step sizes gamma

paddata(data, ne)[source]

Pad tomography projections

unpaddata(data, n)[source]

Unpad tomography projections

unpadobject(f, n)[source]

Unpad 3d object