Package sc.fiji.snt.tracing.auto
Class DiskBackedGWDTTracer<T extends net.imglib2.type.numeric.RealType<T>>
java.lang.Object
sc.fiji.snt.tracing.auto.AbstractAutoTracer
sc.fiji.snt.tracing.auto.AbstractGWDTTracer<T>
sc.fiji.snt.tracing.auto.DiskBackedGWDTTracer<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
GWDTTracerdue to disk I/O - Disk: Requires ~25 bytes per voxel temporary storage
- Best for: Images > 2GB or systems with limited RAM
- Whole-brain light-sheet images (4096×4096×1000)
- High-resolution tile scans
- Processing on laptops with limited RAM
- Author:
- Tiago Ferreira
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class sc.fiji.snt.tracing.auto.AbstractGWDTTracer
AbstractGWDTTracer.HierarchySegment, AbstractGWDTTracer.WaypointBiasSourceNested classes/interfaces inherited from interface sc.fiji.snt.tracing.auto.AutoTracer
AutoTracer.SeedRole -
Field Summary
Fields inherited from class sc.fiji.snt.tracing.auto.AbstractGWDTTracer
ALIVE, backgroundThreshold, branchTuneMaxAngle, cnnType, dims, FAR, jointLeafPruneEnabled, leafPruneEnabled, leafPruneOverlap, maxBounds, maxIntensity, minBounds, minBranchIntensityLength, minIntensity, overshootRemovalEnabled, parallelBranchPruneEnabled, resampleEnabled, resampleStep, scoreMap, scoreMapEnabled, scoreMapFilterType, scoreMapPruneThreshold, scoreMapScales, seedVoxel, smoothEnabled, smoothWindowSize, source, spacing, sphereOverlapThreshold, srRatio, storage, TRIAL, zigzagRemovalEnabledFields inherited from class sc.fiji.snt.tracing.auto.AbstractAutoTracer
logger, rootStrategy, somaRoi, somaRoiZPosition, verboseFields inherited from interface sc.fiji.snt.tracing.auto.AutoTracer
ROI_CENTROID, ROI_CENTROID_WEIGHTED, ROI_CONTAINED, ROI_EDGE, ROI_UNSET -
Constructor Summary
ConstructorsConstructorDescriptionDiskBackedGWDTTracer(ij.ImagePlus source) Creates a new DiskBackedGWDTTracer from an ImagePlus.DiskBackedGWDTTracer(net.imagej.ImgPlus<T> source) Creates a new DiskBackedGWDTTracer from an ImgPlus.DiskBackedGWDTTracer(net.imglib2.RandomAccessibleInterval<T> source) Creates a new DiskBackedGWDTTracer with isotropic spacing (1.0 for each dimension).DiskBackedGWDTTracer(net.imglib2.RandomAccessibleInterval<T> source, double[] spacing) Creates a new DiskBackedGWDTTracer. -
Method Summary
Modifier and TypeMethodDescriptionstatic DiskBackedGWDTTracer<?> create(ij.ImagePlus source) static DiskBackedGWDTTracer<?> create(net.imagej.ImgPlus<?> source) protected StorageBackendCreate the storage backend for this tracer.Methods inherited from class sc.fiji.snt.tracing.auto.AbstractGWDTTracer
addNeighborsToHeap, computeAndApplyScoreMap, computeAverageSpacing, computeIntensityRange, computeIntensityWeightedJointCoverage, createIsotropicSpacing, darkNodeAndSegmentPruning, getCaliperFraction, getDimensions, getEffectiveThreshold, getMaxGapVoxels, getMinSomaDistance, getNSomas, getScoreMap, getSpacing, getSpacing, getTipExtensionDistance, getTracedRegionBuffer, hierarchicalPrune, honoredSeedRoles, indexToPos, isAllowVoxelGap, isAutoFilter, isInBounds, isParallelBranchPruneEnabled, isPathFittingEnabled, iterateNeighbors, nodeToVoxelPos, posToIndex, posToIndex, pruneParallelBranches, recalculateRadiiFromImage, removeOvershoots, removeZigzags, resampleCurve, runFastMarching, setAllowVoxelGap, setAutoFilter, setBackgroundThreshold, setBranchTuneMaxAngle, setCaliperFraction, setConnectivityType, setJointLeafPruneEnabled, setLeafPruneOverlap, setMaxGapVoxels, setMinBranchIntensityLength, setMinSegmentLength, setMinSegmentLengthVoxels, setMinSomaDistance, setNSomas, setOvershootRemovalEnabled, setParallelBranchPruneEnabled, setPathFittingEnabled, setResampleStep, setRoots, setScoreMap, setScoreMapEnabled, setScoreMapFilterType, setScoreMapPruneThreshold, setScoreMapScales, setSeed, setSeedPhysical, setSmoothWindowSize, setSphereOverlapThreshold, setSrRatio, setTipExtensionDistance, setTips, setTracedRegionBuffer, setWaypointBiasFixedFactor, setWaypointBiasRadiusVoxels, setWaypointBiasSource, setWaypointBiasStrength, setWaypoints, setZigzagRemovalEnabled, smoothCurve, trace, traceMultiSoma, traceToGraph, traceTrees, tuneBranchesMethods inherited from class sc.fiji.snt.tracing.auto.AbstractAutoTracer
collapseSomaNodes, collapseSomaToRoiCentroid, collapseSomaToWeightedCentroid, computeAverageRadius, estimateBackgroundThreshold, findGraphRoot, findRoot, findRoot, findRootPhysical, findRootPhysical, findThickestPoint, findThickestPointPhysical, getRootStrategy, getSomaRoi, isInsideSomaRoi, isVerbose, log, removeDisconnectedComponents, setSomaRoi, setSomaRoi, setSomaRoiZPosition, setStatusListener, setVerbose, splitAtSomaBoundary, status
-
Constructor Details
-
DiskBackedGWDTTracer
Creates a new DiskBackedGWDTTracer.- Parameters:
source- the grayscale image to tracespacing- voxel dimensions [x, y, z] in physical units
-
DiskBackedGWDTTracer
Creates a new DiskBackedGWDTTracer from an ImgPlus.- Parameters:
source- the grayscale image to trace
-
DiskBackedGWDTTracer
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
-
createStorageBackend
Description copied from class:AbstractGWDTTracerCreate the storage backend for this tracer. Subclasses override to specify array, sparse, or disk-backed storage.- Specified by:
createStorageBackendin classAbstractGWDTTracer<T extends net.imglib2.type.numeric.RealType<T>>
-
create
-
create
-