You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.
This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
# 数字图像处理期末项目
> 王佳飞 10205101547
>
> 陈黎明 10205101452
### 注意事项
1. ** 因头歌项目仓库限制, 无法上传图片资源、组件、exe文件及演示视频, 故在此上传项目报告及源代码; 完整代码、项目报告及演示视频已上传至gitee仓库: https://gitee.com/wjfsdbd/image-processing**
2. 依赖项较多, 不便于用pyinstaller进行打包处理, 具体成品可参看项目演示视频
3. 安装PaddlePaddle时注意cuda版本的选择, 建议先查看显卡驱动
4. 安装完毕后运行主函数即可
#### 项目简介
本项目包括数字图像的基本处理和图像风格快速变换两大模块。使用设计图形用户界面, 通过滚动条动态调整参数, 可以实现图像增强、边缘提取、几何变换、图像融合等基础图像变换功能。并在自主学习深度学习相关内容后, 基于LapStyle快速前馈风格化网络实现不同艺术风格的快速迁移。
#### 软件架构
+ 开发语言采用了python 3.10
+ 图像处理库采用了opencv-python
+ GUI部分采用了PySide6 + Qml
+ 风格迁移功能采用了PaddleGan
#### 项目结构
----README.md
----assets 图片资源( gitee)
----report.pdf 项目报告( gitee)
----演示视频.mp4 项目完整演示视频( gitee)
----Code
Components qml组件( gitee)
main.qml 主程序qml
lapstyle.py 风格迁移功能, 修改自PaddleGan的lapstyle_predictor
main.py 主程序入口及各个图像处理函
#### 实现功能
+ 图像变换
+ rgb通道分离
+ 图像平移
+ 图像旋转
+ 图像翻转
+ 图像缩放
+ 仿射变换
+ 图像错切
+ 投影变换
+ 图形绘制
+ 绘制直线
+ 绘制矩形
+ 绘制圆形
+ 添加文本
+ 灰度变换
+ 图像二值化
+ 分段线性变换
+ 灰度级分层
+ 对数变换
+ 幂律变换
+ 生成灰度直方图
+ 边缘检测
+ Roberts算子
+ Sobel算子
+ Prewitt算子
+ Laplacian算子
+ LoG算子
+ Canny算子
+ 图像平滑
+ 空域平滑
+ 中值滤波
+ 均值滤波
+ 频域平滑
+ 理想低通滤波
+ 巴特沃斯滤波
+ 高斯滤波
+ 形态处理
+ 腐蚀
+ 膨胀
+ 开运算
+ 闭运算
+ 噪声添加
+ 高斯噪声
+ 指数噪声
+ 平均噪声
+ 椒盐噪声
+ ** 风格迁移**
+ 图像打开、保存等
#### 安装教程
1. 安装Qt6与PySide6 https://www.qt.io/
2. 安装PaddlePaddle https://www.paddlepaddle.org.cn/
3. 安装各项依赖 pip install -r requirements.txt
#### 成员及分工
王佳飞:图形界面设计、编写;风格迁移代码实现
陈黎明:后台函数编写;阅读论文,撰写项目报告