Reconstruction & ImagingEnglish

CT Artifact Correction (Algotom)

CT Artifact Correction (Algotom) is a Dragonfly plugin for pre/post-reconstruction artifact correction of an image Channel. You pick an image Channel from the scene (a projection/sinogram stack, or already-reconstructed

Updated 2026-07-09User manual

CT Artifact Correction (Algotom) - User Manual

Dragonfly Prototype Apps · CT Artifact Correction (Algotom)...

Version 1.0 · 2026-07-09


English Manual

Contents

1. Overview

2. Use Cases

3. Installation & Enabling

4. Environment & First-Run Setup

5. User Interface

6. Step-by-Step Usage

7. Parameter Reference

8. Outputs

9. FAQ & Troubleshooting

10. Notes & Known Limitations

11. References

1. Overview

CT Artifact Correction (Algotom) is a Dragonfly plugin for pre/post-reconstruction artifact correction of an image Channel. You pick an image Channel from the scene (a projection/sinogram stack, or already-reconstructed slices), choose a correction operation, set its parameters, and click Correct Artifacts. The plugin processes the whole volume slice-by-slice and publishes a new corrected Channel with exactly the same shape and geometry (voxel spacing, origin) as the source.

This plugin is not a reconstructor - it cleans the data *around* reconstruction and is the complement to the TomoRecon plugin, which performs the reconstruction. The two are independent.

The compute engine is the open-source toolkit Algotom (Apache-2.0, permissive), together with numpy and scipy (both BSD). Four operations are provided:

  • Ring/stripe removal (remove_all_stripe) - calls algotom.prep.removal.remove_all_stripe with snr / la_size / sm_size. Acts on the projection domain (each z-slice = one projection/sinogram); removes detector-defect stripes that become concentric rings after reconstruction.
  • Ring/stripe removal (sorting-based) - calls algotom.prep.removal.remove_stripe_based_sorting, using only sm_size. Also acts on the projection domain.
  • Zinger (bright-speckle) removal - calls algotom.prep.removal.remove_zinger with threshold / size; removes isolated bright scattering speckles. Works on either the projection or slice domain.
  • Paganin phase retrieval - calls algotom.prep.phase.paganin_filter with X-ray energy / sample-to-detector distance / pixel size / delta-over-beta ratio; single-material phase retrieval on flat-field-corrected projections to boost contrast on weakly absorbing samples.

The plugin keeps Algotom strictly isolated in a dedicated Python virtual environment (venv), running it as a subprocess with JSON-file IPC; nothing is installed into Dragonfly's own Python.

On Dragonfly 2027.1 (Python 3.14) the bundled Python cannot build this environment: install a python.org Python (3.12, 3.13 or 3.14) and enter it in the panel's Base Python field; Dragonfly 2025.1 needs no separate Python.

2. Use Cases

The plugin targets pre/post-processing of synchrotron and lab CT data. Typical uses:

  • Remove ring/stripe artifacts caused by detector defects - suppress the stripes in the projection domain so the concentric rings never appear after reconstruction.
  • Remove zingers (isolated over-bright pixel speckles) caused by scattering.
  • Perform single-material Paganin phase retrieval on weakly absorbing samples (soft tissue, polymers, composites) to substantially boost pre-reconstruction contrast.
  • Run a standardized artifact cleanup before handing the data to reconstruction (e.g. the TomoRecon plugin) or downstream analysis.

The corrected data comes back to the scene as a new Channel, ready for reconstruction, segmentation, measurement, or visualization.

3. Installation & Enabling

1. Download the Prototype Apps online package from ImageFly and extract it. Close Dragonfly, run install_prototype_apps.exe and select the Dragonfly version to install into.

2. Start Dragonfly, open Prototype Apps ▸ App Store and search for CT Artifact Correction (Algotom). If an Enable button is shown, click it and follow the sign-in, download or installation prompts.

3. Restart Dragonfly when prompted, then open CT Artifact Correction (Algotom) from the Prototype Apps menu. Return to App Store to enable or disable it later.

4. Environment & First-Run Setup

The plugin uses a venv-in-code environment model. Installation downloads nothing; before first use you click Setup Environment once in the panel.

What Setup Environment does:

  • On Dragonfly 2027.1, set Base Python to a python.org Python 3.12, 3.13 or 3.14 executable. On 2025.1, you can leave it blank to use the bundled Python.
  • Installs algotom + numpy + scipy (no CUDA) from the default PyPI index. These install as wheels on CPython 3.10-3.12.
  • Runs a smoke check (imports numpy/scipy/algotom and the required functions) and records the venv's Python path.

Download size: small (the algorithm library is pure Python plus scientific dependencies, no CUDA). Internet: needed only once for the first setup, not afterwards. GPU: not required (CPU-only). WSL / external apps: not required.

Where the environment lives: the venv is built inside the installed code directory, i.e. %LOCALAPPDATA%\comet\<Dragonfly version>\pythonUserExtensions\GenericMenuItems\Algotom\venv. The venv Python path is saved in algotom_config.json in the same folder, and the panel auto-detects it next time.

On Dragonfly 2027.1, set Base Python to a python.org Python 3.12, 3.13 or 3.14 executable. On 2025.1, you can leave it blank to use the bundled Python.

On Dragonfly 2027.1, set Base Python to a python.org Python 3.12, 3.13 or 3.14 executable. On 2025.1, you can leave it blank to use the bundled Python.

5. User Interface

The panel is a stack of group boxes from top to bottom. Each control is described below (matching the code exactly).

Input Channel

  • Channel (dropdown) - the image Channel to process; entries read "title (ZxYxX)". The Refresh button next to it re-scans the Channels in the current scene. With no Channels it shows "(no channels - load a volume in Dragonfly)".
  • Input domain (dropdown) - two options: Projection / sinogram stack (each z-slice = one angle x detector projection; internal value projection, the default) and Reconstructed slices (internal value slice). This choice feeds the guidance note below.
  • Guidance line (grey small text) - shows a note matching the chosen operation and domain: choosing a projection-domain operation (ring/stripe removal, Paganin) with the domain set to slice warns it should act on the projection domain; Paganin on the projection domain notes it "expects flat-field-corrected projections".

Operation

  • Operation (dropdown) - four options in order: ring/stripe removal remove_all_stripe (projection), ring/stripe removal sorting-based (projection), zinger (speckle) removal (projection or slice), and Paganin phase retrieval (projection). Selecting a different operation shows only its matching parameter group box below.

Ring/stripe parameters

Shown for the two ring/stripe removal operations. For the sorting-based method only sm_size is used; snr and la_size are greyed out.

  • snr (double spinbox) - signal-to-noise ratio for detecting stripes, range 1.0-50.0, step 0.5, default 3.0; larger is more conservative (fewer stripes flagged).
  • la_size (spinbox) - window (odd) for removing large stripes, range 1-501, step 2, default 51.
  • sm_size (spinbox) - window (odd) for removing small stripes, range 1-201, step 2, default 21; also the sorting-window size for the sorting-based method.

Zinger parameters

Shown for zinger removal.

  • threshold (double spinbox) - relative intensity-jump threshold above which a voxel is treated as a zinger, range 0.0-10.0, 3 decimals, step 0.01, default 0.08.
  • size (spinbox) - median-window radius used to replace zingers, range 1-21, default 2.

Paganin phase-retrieval parameters

Shown for Paganin phase retrieval.

  • energy (keV) (double spinbox) - X-ray energy in keV, range 1.0-1000.0, step 1.0, default 30.0.
  • distance (m) (double spinbox) - sample-to-detector distance in metres, range 0.0-100.0, 4 decimals, step 0.05, default 0.5.
  • pixel size (m) (double spinbox) - detector pixel size in metres, range 0.0-1.0, 9 decimals, step 1e-6, default 1e-6 (1 micrometre).
  • ratio (delta/beta) (double spinbox) - delta/beta ratio, range 0.0-1e6, 2 decimals, step 10.0, default 100.0; larger = stronger smoothing.

Environment (Algotom venv)

  • On Dragonfly 2027.1, set Base Python to a python.org Python 3.12, 3.13 or 3.14 executable. On 2025.1, you can leave it blank to use the bundled Python.
  • Status (label) - shows the environment state: "Ready: <venv python path>" when set up, otherwise prompts you to click Setup Environment.

Action buttons & output

  • Setup Environment (button) - builds/reuses the venv and installs the dependencies (see Section 4).
  • Correct Artifacts (button) - runs the selected operation with the current parameters on the chosen Channel.
  • Summary label - after compute, shows one line: operation, input domain, slice count, output value range, mean, and non-finite count.
  • Log text area (read-only) - shows progress logs and any errors.

6. Step-by-Step Usage

First use: build the environment

1. Open the panel: Prototype Apps ▸ CT Artifact Correction (Algotom)....

2. On Dragonfly 2027.1, set Base Python to a python.org Python 3.12, 3.13 or 3.14 executable. On 2025.1, you can leave it blank to use the bundled Python.

3. Click Setup Environment and wait for the ready message in the log; this first run needs internet. The status line turns to "Ready: ..." when done.

Ring/stripe removal workflow (kill the concentric rings)

1. Load a projection/sinogram stack in Dragonfly (each z-slice = one angle x detector projection/sinogram).

2. Click Refresh at the top and select the stack in the Channel dropdown.

3. Set Input domain to Projection / sinogram stack.

4. In Operation choose remove_all_stripe or the sorting-based method.

5. Tune snr / la_size / sm_size (the sorting-based method needs only sm_size); an even la_size/sm_size is auto-incremented to be odd.

6. Click Correct Artifacts; the plugin processes slice-by-slice and publishes the corrected Channel, which you can then feed into reconstruction.

Zinger removal workflow

1. Select a Channel containing isolated bright speckles (projection or slice domain both fine).

2. In Operation choose Zinger (speckle) removal.

3. Set threshold (relative intensity-jump) and size (median-window radius).

4. Click Correct Artifacts to get a new zinger-free Channel.

Paganin phase-retrieval workflow

1. Load and select a stack of flat-field-corrected projections.

2. Set Input domain to Projection / sinogram stack.

3. In Operation choose Paganin phase retrieval.

4. Set energy (keV) / distance (m) / pixel size (m) / ratio (delta/beta) to match your acquisition geometry.

5. Click Correct Artifacts to publish the phase-retrieved projections, then reconstruct for a high-contrast result.

Every operation is applied independently to each z-slice, so even a very large volume is processed with a bounded memory footprint.

7. Parameter Reference

Parameter

Operation

Default

Range

Description

snr

remove_all_stripe

3.0

1.0-50.0

Signal-to-noise ratio for stripe detection; larger = more conservative.

la_size

remove_all_stripe

51

1-501 (odd)

Window for removing large stripes; even values auto-incremented.

sm_size

remove_all_stripe / sorting

21

1-201 (odd)

Window for small stripes; also the sorting window for the sorting method.

threshold

zinger removal

0.08

0.0-10.0

Relative intensity-jump threshold for flagging a zinger.

size

zinger removal

2

1-21

Median-window radius to replace zingers.

energy (keV)

Paganin

30.0

1.0-1000.0

X-ray energy in keV.

distance (m)

Paganin

0.5

0.0-100.0

Sample-to-detector distance in metres.

pixel size (m)

Paganin

1e-6

0.0-1.0

Detector pixel size in metres (default 1 micrometre).

ratio (delta/beta)

Paganin

100.0

0.0-1e6

delta/beta ratio; larger = stronger smoothing.

Environment-related settings are below.

Setting

Default

Description

Base Python

(blank)

Blank on 2025.1. External Python path on 2027.1.

Input domain

Projection / sinogram stack

Input domain; feeds the guidance note, does not change the per-slice compute.

8. Outputs

When the compute finishes, the plugin publishes a new Channel into the Dragonfly scene:

  • The new Channel is named "source title - operation label", has exactly the same shape as the source, and reuses the source's voxel spacing and origin (geometry-aligned).
  • Output data type is float32; non-finite values (NaN/Inf) are set to 0 on import.
  • A 2D input is auto-promoted to 3D internally, and the output preserves the same dimensionality as the input.

How to view: the corrected Channel appears in the object tree / scene immediately (no restart needed). The summary label shows one line of statistics: operation, input domain, slice count, output value range [min, max], mean, and non-finite count. You can display it in 2D/3D views like any Channel, or feed it into reconstruction, segmentation, and measurement.

This plugin only corrects; it does not reconstruct. If you processed a projection/sinogram stack, you still need a reconstruction tool (e.g. the TomoRecon plugin) to get the final slices.

9. FAQ & Troubleshooting

Q1: I can't find "CT Artifact Correction (Algotom)..." in the menu.

A: Confirm that CT Artifact Correction (Algotom) is enabled in Prototype Apps ▸ App Store, then restart Dragonfly.

Q2: Correct Artifacts says "environment not set up".

A: The venv has not been built yet. Click Setup Environment first (internet needed the first time); once the status line reads "Ready: ...", run again.

Q3: Setup Environment fails, saying there is no venv module or creation failed.

A: Enter the path to a CPython 3.10+ interpreter with stdlib venv + pip (e.g. C:\Python312\python.exe) or py -3.11 in the Base Python field and retry. Also confirm you have internet for the first setup (algotom/numpy/scipy are downloaded from PyPI).

Q4: There are still obvious concentric rings after reconstruction - the correction didn't help.

A: Ring/stripe removal must act on the projection domain. Confirm the input is a projection/sinogram stack and that Input domain is set to Projection; applying it to reconstructed slices triggers a warning in the guidance line and may not remove rings correctly.

Q5: It reports "Out of memory".

A: Although processing is slice-by-slice, the full volume still needs to be read in. Try cropping a smaller ROI first, or downsample the volume before running.

Q6: The dropdown shows "(no channels - load a volume in Dragonfly)".

A: There is no usable Channel in the current scene. Load a volume in Dragonfly, then click Refresh on the panel to update the list.

10. Notes & Known Limitations

  • This plugin only corrects artifacts; it does not reconstruct - use TomoRecon or another tool for reconstruction.
  • The input domain matters: ring/stripe removal and Paganin retrieval target the projection domain; zinger removal works on either domain. A mismatch triggers a note but is not blocked.
  • la_size / sm_size are forced to be odd (median/sorting windows require it); an even value is auto-incremented by 1.
  • Paganin phase retrieval assumes a single-material sample and flat-field-corrected projections; parameters (energy, distance, pixel size) must match the real acquisition geometry to be physically meaningful.
  • Compute runs on the CPU (no GPU acceleration); very large volumes can be slow - crop or downsample for a trial run.
  • The environment setup needs internet only the first time; runs are offline afterwards. Nothing is installed into Dragonfly's own Python.
  • Disabling/uninstalling the plugin does not delete the built venv; to reclaim disk space, manually delete the venv folder inside the code directory.

11. References

  • Algotom project & source: https://github.com/algotom/algotom (Apache-2.0)
  • Functions used: algotom.prep.removal.remove_all_stripe, remove_stripe_based_sorting, remove_zinger; algotom.prep.phase.paganin_filter.
  • Dependencies: numpy (BSD), scipy (BSD).
  • Related plugin: TomoRecon (CT/TEM reconstruction) - this plugin complements it on the artifact-correction side.
You’ve reached the end of this manual.Explore the library →

PROTOTYPE APPS

Manual assistant

Find an app, understand a parameter, or follow a workflow. Answers include links to the manuals.

Questions and answers are saved long-term to your account. You and site administrators can view them; they may be reviewed to improve the product. Do not submit passwords or confidential data.

All models share a daily allowance. Larger models use more. Chat pauses at the daily protection limit; manual search remains available.

Search the manuals

Cloudflare AI receives your question, recent conversation and relevant public manual excerpts. Records are stored privately in Cloudflare R2 without automatic expiry. Check the cited manual before acting on an answer.