3D Reconstruction

General projection-based reconstruction for tomographic/laminographic cone/parallel beam data sets.

class tofu.genreco.Executor(resources, args, region, x_region, y_region, gpu_index, region_index, writer=None)[source]

Reconstructs one region.

Parameters

writer – if not None, we’ll be writing to a file shared with other executors and need to

use wait_event to make sure we write our region when the previous executors are finished.

tofu.genreco.compute_detector_pixels(points, source_position, axis, volume_rotation, detector, tomo_angle)[source]

points are a list of points along x-direcion, thus the array has height 3. source_position is a 3-vector, axis, volume_rotation and detector are util.Vector instances.

tofu.genreco.compute_detector_region(x, y, shape, overhead=2)[source]

overhead specifies how much margin is taken into account around the computed area.

tofu.genreco.project(points, source, detector_normal, detector_offset)[source]

Project points onto a detector.