Class DiskBackedGWDTTracer<T extends net.imglib2.type.numeric.RealType<T>>

Type Parameters:
T - pixel type
All Implemented Interfaces:
AutoTracer

public class DiskBackedGWDTTracer<T extends net.imglib2.type.numeric.RealType<T>> extends AbstractGWDTTracer<T>
Disk-backed GWDT tracer for very large images.

Uses disk-based caching to process images of arbitrary size with bounded memory usage (~500MB-1GB). Temporary files are automatically created in the system temp directory and deleted after tracing.

Trade-offs:
  • Memory: Constant (~500MB-1GB) regardless of image size
  • Speed: 2-5× slower than GWDTTracer due to disk I/O
  • Disk: Requires ~25 bytes per voxel temporary storage
  • Best for: Images > 2GB or systems with limited RAM
Example use cases:
  • Whole-brain light-sheet images (4096×4096×1000)
  • High-resolution tile scans
  • Processing on laptops with limited RAM
Author:
Tiago Ferreira
See Also:
  • Constructor Details

    • DiskBackedGWDTTracer

      public DiskBackedGWDTTracer(net.imglib2.RandomAccessibleInterval<T> source, double[] spacing)
      Creates a new DiskBackedGWDTTracer.
      Parameters:
      source - the grayscale image to trace
      spacing - voxel dimensions [x, y, z] in physical units
    • DiskBackedGWDTTracer

      public DiskBackedGWDTTracer(net.imagej.ImgPlus<T> source)
      Creates a new DiskBackedGWDTTracer from an ImgPlus.
      Parameters:
      source - the grayscale image to trace
    • DiskBackedGWDTTracer

      public DiskBackedGWDTTracer(net.imglib2.RandomAccessibleInterval<T> source)
      Creates a new DiskBackedGWDTTracer with isotropic spacing (1.0 for each dimension).
    • DiskBackedGWDTTracer

      public DiskBackedGWDTTracer(ij.ImagePlus source)
      Creates a new DiskBackedGWDTTracer from an ImagePlus.
      Parameters:
      source - the grayscale image to trace
  • Method Details