diff --git a/tomotools/base.py b/tomotools/base.py index 5e0e2728..d5b6bacc 100644 --- a/tomotools/base.py +++ b/tomotools/base.py @@ -701,6 +701,13 @@ def reconstruct( >>> thresh = 0 >>> rec = slices.reconstruct('SIRT',iterations, constrain, thresh, cuda=False) + Discreate algebraice reconstruction technique (DART) reconstruction + >>> import tomotools.datasets as ds + >>> stack = ds.get_needle_data(True) + >>> slices = stack.isig[:, 120:121].deepcopy() + >>> gray_levels = [0., slices.data.max()/2, slices.data.max()] + >>> rec = slices.reconstruct('DART',iterations=5, cuda=False, gray_levels=gray_levels, p=0.99, dart_iterations=5) + """ if method.lower() not in [ "fbp", diff --git a/tomotools/recon.py b/tomotools/recon.py index 357092d2..63677431 100644 --- a/tomotools/recon.py +++ b/tomotools/recon.py @@ -52,7 +52,7 @@ def run_dart(sino, iters, dart_iters, p, alg_id, proj_id, mask_id, rec_id, sino_id, thresholds, gray_levels): """ - Run DART reconstruction algorithm. + Run discrete algebraic reoncsturction technique (DART) algorithm. Adapted from pseudo-code published in: K. J. Batenburg and J. Sijbers, "DART: A Practical Reconstruction