jung [at] seas.harvard.edu
Reconstructing individual rod positions and orientations from volumetric X-ray imaging of dense packings.
GitHub: matlab-image-processing
To study entanglement experimentally, we need to measure the actual 3D configuration of rods in a packing — not just macroscopic quantities like total density or mechanical response. X-ray computed tomography (CT) provides volumetric images of opaque packings, but extracting individual rod geometries from these images is a non-trivial image analysis problem.
The challenge: in a dense packing, rods overlap in 2D projections, their X-ray contrast is similar, and artifacts from the reconstruction can blur boundaries. We need a pipeline that robustly segments individual rods in 3D and extracts their centerlines, orientations, and contact points.
The matlab-image-processing toolkit provides a MATLAB-based pipeline for this segmentation task. Key components:
SCRIPT_checkEveryGroup.m and SCRIPT_assessEveryGroup.m automate the analysis across multiple sample groupsThe toolkit is organized with:
functions/ — Core analysis functionsscripts/ — High-level automation scriptsmex/ — Compiled MATLAB extensions for performance-critical steps.mat files for efficient I/OThe extracted rod configurations feed directly into the computational analyses:
rod-dynamics-3d and rod-placementRod segmentation in 3D is fundamentally harder than in 2D because contact surfaces between rods in a dense packing are difficult to resolve with finite voxel resolution. The toolkit addresses this by:
The result is a list of \(N\) rods with positions, orientations, and estimated uncertainties — a compact geometric description of the packing that can be analyzed with all the other tools in this research program.
| back to works | home |