# 01_sampling_theorem **Repository Path**: xiao_pacai/01_sampling_theorem ## Basic Information - **Project Name**: 01_sampling_theorem - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-06-29 - **Last Updated**: 2026-07-01 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 采样量化数字图像处理教学软件 本项目使用 Python Tkinter 开发 GUI 教学软件,用于演示数字图像处理中空间采样、采样重建、灰度量化和误差分析的完整流程。 ## 运行环境 - Python 3.10+ - Tkinter - Pillow - NumPy 安装依赖: ```bash pip install -r requirements.txt ``` 运行程序: ```bash python main.py ``` ## 功能说明 软件界面包含图像显示区、代码区和操作区。 - 图像显示区:显示原始图像、当前步骤结果和辅助分析图形。 - 操作区:支持“上一步”“下一步”、步骤选择、采样因子、量化位数、重建方法、加载图像和保存结果。 - 代码区:显示当前处理步骤对应的 Python 核心算法代码。 教学步骤: 1. 原始图像 2. 灰度化 3. 空间采样 4. 采样重建 5. 灰度量化 6. 误差分析 ## 项目结构 ```text . ├── assets/ │ └── sample_sampling_quantization.png ├── scripts/ │ └── generate_assets.py ├── tests/ │ └── test_processing.py ├── main.py ├── README.md └── requirements.txt ``` ## 测试 ```bash pytest ``` 如需重新生成演示素材: ```bash python scripts/generate_assets.py ```