# TomoJAX > Parallel-beam, laminography and cone-beam CT reconstruction and alignment in JAX. Exact-transpose CUDA forward and adjoint projectors, analytical and iterative solvers (Fourier, FBP/FDK, CGLS, SIRT/OS-SART, MLEM/OSEM, FISTA-TV, SPDHG-TV), joint volume-and-pose alignment, CLI, stdio MCP server, and native Studio desktop workspace, each usable on this computer or on a machine reached over SSH. Every documentation page is also available as Markdown by appending `.md` to its URL (or [`/index.md`](https://tomojax.dev/index.md) for the homepage), or by sending `Accept: text/markdown`. ## When to use TomoJAX Reach for TomoJAX when a user needs local, GPU-accelerated (or CPU) X-ray tomography reconstruction, alignment, or differentiable projection on Linux: - **Reconstruct real or synthetic scans** in parallel-beam, laminography, or lab cone-beam CT (including multi-orbit `ConeSegments`) using Fourier-slice inverse, FBP/FDK, CGLS, SIRT/OS-SART, MLEM/OSEM, FISTA-TV, or SPDHG-TV. - **Load and calibrate facility or vendor scans** directly from NXtomo (ESRF, Diamond), APS Data Exchange (APS, PSI TOMCAT, Elettra SYRMEP), Nikon `.xtekct`, Zeiss `.txrm`, ESRF Bliss/EDF/PyHST, SkyScan, PSI cSAXS, or TIFF stacks. - **Fix misalignment and motion artifacts** by jointly solving for the volume and rotation center, setup tilt/roll, per-view translations, or per-view rotations with `tj.align` or `tomojax align`. - **Differentiate through tomography projectors** with exact-transpose CUDA kernels in JAX (`jax.grad`, `jvp`, `vjp`) or PyTorch (`tomojax.torch.Projector`). - **Reconstruct volumes larger than GPU memory** using automatic host-slab streaming and multi-GPU execution. How an agent should invoke TomoJAX: - **Interactive agent workflows**: connect to the stdio MCP server (`tomojax mcp` with the worker from `tomojax-studio`). `tomojax mcp --connection NAME` runs the same tools on a workstation or Slurm cluster over SSH, beside the data there. Scans and volumes stay resident on the GPU between tool calls, and `view` returns labeled slice PNGs for visual inspection. - **Scripted pipelines and batch reconstruction**: run the `tomojax` CLI (`tomojax inspect`, `correct`, `align`, `reconstruct`, `export`, `simulate`). - **Custom solvers, training loops, or multi-GPU scripts**: call the Python API (`import tomojax as tj`). - **Not a hosted cloud API**: TomoJAX runs beside the scan files and GPU, on this computer or on a machine you reach over SSH, with no cloud backend or API keys. ## Section indexes - [Guides index](https://tomojax.dev/guides/llms.txt): Task-oriented guides for installation, reconstruction, correction, alignment, interfaces, and benchmarks. - [API reference index](https://tomojax.dev/api/llms.txt): Module-by-module Python API reference for `tomojax` and its public submodules. - [Full documentation](https://tomojax.dev/llms-full.txt): All TomoJAX documentation concatenated into one Markdown document. ## Get started - [TomoJAX](https://tomojax.dev/): Parallel-beam, laminography and cone-beam CT reconstruction and alignment in JAX. - [Install TomoJAX](https://tomojax.dev/installation/): CPU or CUDA dependencies. - [Reconstruct your first scan](https://tomojax.dev/quickstart/): From a scan file to inspected slices. - [Simulate and reconstruct tomography data](https://tomojax.dev/synthetic-tomography/): Simulate data and call the Python API. - [Examples](https://tomojax.dev/examples/): The runnable example scripts. - [Gallery](https://tomojax.dev/gallery/): Figures from phantoms and real scans. - [Documentation map](https://tomojax.dev/guide-map/): Every guide by task. ## Reconstruct - [First slices from beamline exports](https://tomojax.dev/beamline-exports/): First slices from ESRF, TOMCAT/SYRMEP and I13 exports. - [Reconstruct a real parallel or laminography scan](https://tomojax.dev/real-laminography/): Measured geometry for parallel and laminography scans, including TIFF stacks. - [Lab cone-beam CT](https://tomojax.dev/lab-ct/): Import, calibrate and reconstruct a lab cone-beam scan. - [Large scans and several GPUs](https://tomojax.dev/large-scans/): Scans larger than the GPU, and several GPUs. - [Export a reconstruction](https://tomojax.dev/export/): Export calibrated volumes for ImageJ, Fiji, ITK, VTK, or Amira. ## Correct and align - [Correction steps](https://tomojax.dev/corrections/): From detector counts to line integrals, and steps on line integrals. - [Align a scan](https://tomojax.dev/align-a-scan/): Choose what to fit: the center, drift, the setup angles or sample rotation. - [Held-out evaluation](https://tomojax.dev/held-out-evaluation/): Split views or detector columns to test a fit on data it did not see. ## Interfaces - [TomoJAX Studio](https://tomojax.dev/studio/): Native workspace for persistent tomography projects, previews and 3D viewing. - [Command line](https://tomojax.dev/command-line/): The commands, their conventions and --config files. - [Reconstruct a scan on another machine](https://tomojax.dev/remote/): Run a job on a cluster and view it on a laptop. - [Use TomoJAX from an AI agent](https://tomojax.dev/mcp/): Let an AI agent drive TomoJAX through the Model Context Protocol. - [Differentiable projection in PyTorch](https://tomojax.dev/pytorch/): Use the projector as a differentiable PyTorch operator. - [Worker protocol](https://tomojax.dev/protocol/): JSON Lines worker protocol and standalone progress contract. - [Progress metrics](https://tomojax.dev/progress-metrics/): Scalar diagnostics emitted during reconstruction and alignment. ## Scope and performance - [Support matrix](https://tomojax.dev/support-matrix/): Geometries, units, algorithms and GPU scope. - [Known limitations](https://tomojax.dev/known-limitations/): What does not work yet, or needs checking. - [Measurements](https://tomojax.dev/measurements/): Measured speed, accuracy, scaling, and memory across tomography libraries. - [Contributing to TomoJAX](https://tomojax.dev/contributing/): Tests, packaging and repository conventions. ## Package guides - [Geometry](https://tomojax.dev/geometry/): Grids, detectors, geometries and poses. - [Forward projection](https://tomojax.dev/forward-projection/): Projector model and derivative choices. - [Reconstruction](https://tomojax.dev/reconstruction/): Algorithms and their configuration. - [IO](https://tomojax.dev/io/): Datasets, acquisition metadata and TIFF angle files. - [Alignment configuration](https://tomojax.dev/alignment-configuration/): The joint solver behind tj.align and its numerical contracts. ## API reference - [tomojax](https://tomojax.dev/api/tomojax/): TomoJAX: tomography, laminography and lab cone-beam CT reconstruction and alignment. - [tomojax.io](https://tomojax.dev/api/io/): Projection datasets on disk: load, save and validate them. - [tomojax.corrections](https://tomojax.dev/api/corrections/): Corrections: from detector counts to line integrals, and on line integrals. - [tomojax.recon](https://tomojax.dev/api/recon/): Public reconstruction API. - [tomojax.alignment](https://tomojax.dev/api/alignment/): Geometry fitting for scans. - [tomojax.geometry](https://tomojax.dev/api/geometry/): Scan geometry: grids, detectors, beams and field-of-view helpers. - [tomojax.forward](https://tomojax.dev/api/forward/): High-frequency forward-model entry points. - [tomojax.datasets](https://tomojax.dev/api/datasets/): Deterministic synthetic scans and phantoms for the tomojax simulate workflow. - [tomojax.evaluation](https://tomojax.dev/api/evaluation/): Frozen observation splits and additive, matched-prediction held-out scores. - [tomojax.progress](https://tomojax.dev/api/progress/): Synchronous progress events and cooperative cancellation. - [tomojax.interactive](https://tomojax.dev/api/interactive/): Registered slices, center sweeps, detector bands and region overlays for interactive clients. - [tomojax.torch](https://tomojax.dev/api/torch/): Optional PyTorch autograd bridge to TomoJAX's exact matched projectors. - [tomojax.recon.api](https://tomojax.dev/api/recon-api/): Expert reconstruction helpers: method configuration, array and slab solvers. - [tomojax.io.api](https://tomojax.dev/api/io-api/): Expert IO helpers: acquisition readers, NXtomo containers, inspection and JSON. - [tomojax.alignment.api](https://tomojax.dev/api/alignment-api/): Detector disturbance screening and opposing-view center measurements. - [tomojax.geometry.api](https://tomojax.dev/api/geometry-api/): Expert geometry helpers: calibration state and detector grids. - [tomojax.forward.api](https://tomojax.dev/api/forward-api/): Public API for differentiable forward models. - [tomojax.corrections.api](https://tomojax.dev/api/corrections-api/): Expert correction helpers for streaming row-slab pipelines. ## Packages and source - [GitHub repository](https://github.com/tristanmanchester/tomojax): Source code, issue tracker, benchmarks, examples, and Agent Skill (`plugins/tomojax/`). - [PyPI package (`tomojax`)](https://pypi.org/project/tomojax/): Python library, CLI (`tomojax`), and MCP launcher (`tomojax mcp`). - [PyPI package (`tomojax-studio`)](https://pypi.org/project/tomojax-studio/): Prebuilt Linux desktop workspace (`tomojax studio`) and the worker (`tomojax-worker`) that remote sessions and `tomojax mcp` use.