VS Code extension to open KViewer in a panel and load local medical imaging data.
Features
- Panel-based KViewer UI inside VS Code.
- Single‑click in Explorer opens supported files in KViewer.
- Supports volumetric imaging:
.nii,.nii.gz,.nrrd,.nrd. - Supports tractography/3D objects:
.tck,.trk(loaded into viewport 0; no orthoview). - Supports DICOM data
- Supports Bruker data
- Drag & drop (including Shift‑drop to use native KViewer drop logic).
- Orthoview for image volumes when opened via “Open and Show Image”.
- ROI/atlas editing tools from KViewer (same UI as main app).
- Annotations/Markers/Boxes/Electrodes
- Manual affine/warp transformations
- Interactive reformating/reslicing
- nnInteractive integration
Commands
KViewer: Open PanelKViewer: Open and Show ImageKViewer: Open Image(workspace only, no auto‑display)KViewer: Open Json(loads JSON into KViewer workspace)KViewer: Add Files(alias of Open and Show)KViewer: Open Selection(alias of Open and Show)KViewer: Reset Saved Layout State
Settings
kviewer.defaultView
Controls default viewport rows/cols and workspace tool behavior.kviewer.debugTimings
Enables detailed load timing logs in the extension host and webview consoles.
Supported Files
- Volumes:
.nii,.nii.gz,.nrrd,.nrd,.mgh,.mgz - Tracts/3D:
.tck,.trk,.gii,.stl - Images:
.jpg,.jpeg,.png,.bmp,.tif,.tiff - Data:
.csv,.bval,.bvec,.bmat,.mat,.ipynb,.txt - DICOM/Bruker:
.dcm,.ima,.rdaand DICOM/Bruker folders (context menu) - JSON-like:
.json,.reading,.stats,.xml
Development
cd /nfs/norasys/unstable/vscode-extension
npm install
npm run build