HomeAI & Machine Learning2D Diffusion Tensor Field: Crossing-Fiber Tractography

2D Diffusion Tensor Field: Crossing-Fiber Tractography

Interactive 2D diffusion-tensor MRI simulator: build a synthetic crossing-fiber phantom on a plane, diagonalize each point's 2×2 diffusion tensor with a closed-form analytic solver, and run FACT streamline tractography that follows the principal diffusion direction to trace fiber tracts.

AI & Machine Learning2DAdvanced60 FPS📱 Mobile-adapted⇄ 3D version
2d-neuroimaging ↗ Open standalone

Diffusion-tensor MRI infers the microscopic orientation of white-matter fiber bundles from how quickly water molecules diffuse in different directions, since myelinated axons let water travel freely along a fiber but block it across one. This simulator builds a synthetic crossing-fiber phantom on a single imaging plane — two bundles overlapping at the center, a standard test case for diffusion algorithms — computes each point's 2×2 diffusion tensor from the mixture, diagonalizes it in closed form to get its principal direction and fractional anisotropy, and then runs FACT-style streamline tractography that follows the principal eigenvector step by step until anisotropy drops or the path bends too sharply, reconstructing fiber tracts exactly as one slice of a clinical tractography pipeline would.

⚙ Under the hood

Build a synthetic crossing-fiber diffusion-tensor phantom on a single imaging plane, diagonalize each point's 2x2 tensor in closed form, and run FACT streamline tractography that follows the principal diffusion direction to trace white-matter fiber tracts in 2D.

neuroimagingdiffusion-mritractographydiffusion-tensorwhite-mattereigen-decomposition

2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)