KViewer VS Code
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).
- Drag & drop (including Shift‑drop to use native KViewer drop logic).
- Workspace tool (file list) with drag‑to‑viewport.
- Orthoview for image volumes when opened via “Open and Show Image”.
- ROI/atlas editing tools from KViewer (same UI as main app).
- Save ROI as
.nii.gz via VS Code save dialog.
- Persisted layout/tool state across sessions, with reset command.
- Optional load timing logs for debugging.
Commands
KViewer: Open Panel
KViewer: Open and Show Image
KViewer: 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:
.dcm, .ima, .rda and DICOM folders (context menu)
- JSON-like:
.json, .reading, .stats, .xml
Development
cd /nfs/norasys/unstable/vscode-extension
npm install
npm run build
| |