A VS Code Extension for 3D Tractography Visualization
View tractography files (.trk, .tck, .trx) directly in VS Code with interactive 3D visualization powered by Three.js.
Marco Tagliaferri — PhD Candidate in Neuroscience 🏛️ Center for Mind/Brain Sciences (CIMeC), University of Trento, Italy
|
|
|
|
|
|
# Clone the repository
git clone https://github.com/marcotag93/tractview.git
cd tractview
# Install dependencies
npm install
# Compile the extension
npm run compilePress F5 in VS Code to launch the Extension Development Host.
- Download the
.vsixrelease file - Open VS Code → Extensions (
Ctrl+Shift+X) - Click
...→ Install from VSIX... - Select the downloaded file
Access settings via File → Preferences → Settings → Extensions → TractView
| Setting | Default | Description |
|---|---|---|
tractview.maxStreamlines |
100000 |
Maximum streamlines to render |
tractview.skipThreshold |
15000 |
Threshold for enabling skip sampling |
tractview.backgroundColor |
#2d2d2d |
Default background color |
tractview.defaultRenderMode |
lines |
Initial render mode |
tractview.tubeRadius |
0.3 |
Tube radius in tube mode |
| Format | Extension | Description |
|---|---|---|
| TrackVis | .trk |
Binary format with 1000-byte header |
| MRtrix | .tck |
Text header + binary float triplets |
| TRX | .trx |
ZIP archive with JSON metadata |
This project is licensed under the MIT License — see the LICENSE file for details.
- Three.js — Powerful 3D rendering library
- TrackVis — TRK format specification
- MRtrix3 — TCK format specification
- TRX Specification — TRX format specification