Skip to content

Save intermediate results of mutli-resolution recon #105

Description

@dyang37

Per Rakesh's request, we should add an argument in recon() function to save the intermediate results of multi-resolution recon.
Specifically, the interpolated results from lower resolution should be saved. In the case where the experiment gets interrupted, the interploated lower resolution image can be used as an init image to re-launch the experiment.

Proposed interface:

def recon(sino, angles, dist_source_detector, magnification,
          ...
          lib_path=__lib_path, save_init_images=0,
          ...
          ):
  • lib_path (str, optional): [Default=~/.cache/mbircone] Path to directory containing library of forward projection matrices.

  • save_init_images (int, optional): [Default=0] If (save_init_images>0) and (max_resolutions>0), the init_image for all resolution spaces except for the lowest one will be saved.
    Each init_image is generated from the interpolation of the recon result from the lower resolution space.
    Each init_image will be saved as a .npy file to <lib_path>/init_images/<sysmatrix_name>.npy, where < sysmatrix_name > is the name of the system matrix corresponding to the geometry parameters of the current resolution space.

Metadata

Metadata

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions