添加了readme说明文件和license文件

This commit is contained in:
carry 2025-01-17 12:19:53 +08:00
commit 8e60521424
18 changed files with 1423 additions and 0 deletions

358
1-5.ipynb Normal file

File diff suppressed because one or more lines are too long

BIN
2-5-4/img1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

BIN
2-5-4/img2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

BIN
2-5-4/img3.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

BIN
2-5-4/img4.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

BIN
2-5-4/img5.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

BIN
2-5-4/img6.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

373
2-5.ipynb Normal file

File diff suppressed because one or more lines are too long

604
3-3.ipynb Normal file

File diff suppressed because one or more lines are too long

BIN
DJI_0049.JPG Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 MiB

21
LICENSE Normal file
View File

@ -0,0 +1,21 @@
MIT License
Copyright (c) 2025 C-a-r-r-y
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

BIN
Lena.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 257 KiB

67
README.md Normal file
View File

@ -0,0 +1,67 @@
# 计算机视觉与模式识别实验
本项目包含广州大学计算机视觉与模式识别课程的三个实验涵盖了图像处理的基础知识和常用技术使用python+opencv实现。
## 实验内容
### 实验1图像灰度处理与直方图均衡化
- 图像灰度量化
- 灰度范围调整
- 直方图均衡化
- RGB和HSV色彩空间处理
### 实验2形态学图像处理
- 图像膨胀操作
- 图像侵蚀操作
- 图像细化(骨架提取)
### 实验3图像噪声处理与滤波
- 椒盐噪声、高斯噪声、指数噪声的添加
- 均值滤波、中值滤波、高斯滤波的实现和比较
- 手动实现中值滤波算法
## 文件结构
```
.
├── 1-5.ipynb # 实验1代码
├── 2-5.ipynb # 实验2代码
├── 3-3.ipynb # 实验3代码
├── 2-5-4/ # 实验2测试图像
│ ├── img1.png
│ ├── img2.png
│ ├── img3.png
│ ├── img4.png
│ ├── img5.png
│ └── img6.png
├── circbw.tif # 测试图像
├── DJI_0049.JPG # 测试图像
├── Lena.bmp # 测试图像
├── pout.tif # 测试图像
├── rice.png # 测试图像
├── text.png # 测试图像
└── tire.tif # 测试图像
```
## 运行环境
- Python 3.7+
- 主要依赖库:
- NumPy
- Matplotlib
- OpenCV
- scikit-image
- SciPy
## 使用说明
1. 安装依赖库:
```bash
pip install numpy matplotlib opencv-python scikit-image scipy
```
2. 运行实验代码:
- 使用Jupyter Notebook打开对应的.ipynb文件
- 按顺序执行代码单元格
- 观察图像处理结果和可视化效果
## 参考
- 实验内容基于广州大学计算机视觉与模式识别课程
- 代码实现参考OpenCV和scikit-image官方文档

BIN
circbw.tif Normal file

Binary file not shown.

BIN
pout.tif Normal file

Binary file not shown.

BIN
rice.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

BIN
text.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

BIN
tire.tif Normal file

Binary file not shown.