Files
REVOXELSEG_DICOM/WebSite/README.md

63 lines
1.2 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 模型逆向系统 WebSite
本目录是“基于模型逆向体素化及 DICOM 分割标注系统”的前后端一体服务。
## 环境要求
- Node.js 18 或更高版本
- npm
当前版本的 DICOM 预览、STL 预览和 NIfTI 演示导出均由 Node/React/Three.js 完成,不需要 Python 或 conda 环境。
后续若接入真实医学级 STL 反向体素化算法,建议单独创建 Python conda 环境,例如:
```bash
conda create -n revoxelseg python=3.11
conda activate revoxelseg
```
再按真实算法依赖安装 SimpleITK、nibabel、numpy、trimesh、vtk 等包。
## 安装依赖
```bash
npm ci
```
## 开发运行
前后端统一由 Express + Vite 中间件托管:
```bash
npm run serve -- --host 0.0.0.0 --port 4000
```
访问:
```text
http://192.168.3.11:4000/
```
## 构建检查
```bash
npm run lint
npm run build
```
## 数据目录
默认演示项目读取仓库根目录:
- `Head_CT_DICOM/`DICOM 序列。
- `Head_CT_ReConstruct/`STL 重建模型。
这些医学影像和模型数据默认不提交到 Git。
## 运行态目录
- `WebSite/data/`:后端共享状态。
- `WebSite/exports/`:生成的 NIfTI 导出文件。
这些目录是运行态产物,默认不提交到 Git。