Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
node_modules
dist
dist-ssr
*.local
.DS_Store
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# 非局部稀疏模型与 RAW 图像恢复 交互式教程

基于论文 *Non-local Sparse Models for Image Restoration*,由 **paper-skill** 生成的完整 React + TypeScript + Vite 网页项目。

## 资料来源

论文由 Julien Mairal、Francis Bach、Jean Ponce、Guillermo Sapiro 和 Andrew Zisserman 发表于 ICCV 2009。教程中的论文效果图取自图 2、图 3 和图 4,实拍对照为图 4 的局部裁块。[论文 PDF](https://www.di.ens.fr/~fbach/iccv09_mairal.pdf) · [DOI](https://doi.org/10.1109/ICCV.2009.5459452)

## 本地运行

```bash
npm install
npm run dev # 开发预览 http://localhost:5173
npm run build # 产出 dist/ 静态站点
npm run preview # 预览构建结果
```

最终提交应保留整个项目目录,不要只复制 `index.html` 或 `dist/`。

## 目录结构

| 路径 | 说明 | 是否生成器(Agent)修改 |
| ---- | ---- | ---- |
| `src/data/tutorial.ts` | 论文专属内容(章节、模块、公式、B 站、元信息) | ✅ 唯一数据文件 |
| `src/styles/paper.css` | 论文专属 `:root` 配色覆盖 | ✅ 仅此 CSS |
| `src/modules/*.tsx` + `registry.tsx` | 论文专属 Canvas 交互组件 | ✅ 在 registry 注册 |
| `public/images/*` | 论文原图(可选) | ✅ 仅放图 |
| `src/components/*` | 静态展示组件(Hero/Chapter/Module…) | ❌ 模板框架默认 |
| `src/lib/*` | 静态工具(canvasKit / B 站) | ❌ 模板框架默认 |
| `src/styles/{tokens,components}.css` | 静态设计令牌与组件样式 | ❌ 模板框架默认 |

## 配色语义(contract.md §5,保持稳定)

- `--blue` 指导/当前状态,`--green` 成功/本文方法,`--red` 失败/传统方法
- `--orange` 用户强调,`--purple` 辅助机制

切勿把 `--accent` 重新定义成别的语义角色。
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>非局部稀疏模型与 RAW 图像恢复 · 交互式教程</title>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>
Loading
Loading