Skip to content

Commit

Permalink
完整推送
Browse files Browse the repository at this point in the history
  • Loading branch information
XuRulin committed May 24, 2020
1 parent 4200851 commit b178f7e
Show file tree
Hide file tree
Showing 115 changed files with 1,372 additions and 958 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# MATLAB
.asv
3 changes: 2 additions & 1 deletion Initialization_Path.m
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@
close all;

path = pwd;
addpath(pwd);
addpath(pwd);
addpath([pwd '\image']);
674 changes: 674 additions & 0 deletions LICENSE

Large diffs are not rendered by default.

56 changes: 56 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
# 全息实验函数库
![](https://img.shields.io/badge/build-passing-brightgreen)
![](https://img.shields.io/badge/language-MATLAB-orange)
![](https://img.shields.io/badge/license-GPLv3-lightgrey)


## 项目简介

将计算全息显示基础算法整理为MATLAB功能函数,简化计算全息功能实现。

## 功能特性
```matlab
Initialization_Path.m % 将HoloLib添加到MATLIB搜索路径
copyMakeBorder.m % 扩充图像边界 超过图像区域补零
expandMAT.m % 对矩阵行向和列向扩展
getAxilens.m % 获取轴锥透镜相位
getBlaze.m % 获取闪耀光栅相位
getLens.m % 获取菲涅尔球面透镜相位
iterFourier.m % 迭代傅里叶算法
iterFresnel.m % 迭代菲涅尔算法
propDFFT.m % 菲涅尔传播-两次傅里叶计算法方法
propTFFT.m % 菲涅尔传播-三次傅里叶计算法方法
propDOE.m % DOE元件菲涅尔传播
recFourier.m % 迭代傅里叶计算重构
recFresnel.m % 迭代菲涅尔计算重构
repImage.m % 图像重复拼接
savePhase.m % 保存相位图
showLCOS.m % 将相位图显示在LCoS上(仅支持MATLAB R2018b及以上版本)
showPhase.m % 相位显示
stepPhase.m % 相位分阶函数
writeFDTD.m % FDTD Solutions 仿真文件数据导出
```
./Sample 存放功能示例代码

## 部署步骤
- 将 HoloLib 文件夹添加到MATLAB搜索路径
- 将 HoloLib\image 文件夹添加到MATLAB搜索路径

## 版本内容更新
### v1.0.1 (2019/11/08)
- 删除作者信息注释
- 修正部分帮助信息错误
- 修正 repImage() 函数失效错误
- showLCoS() 函数仅支持MATLAB R2018b及以上版本
- 删除 cprintf() 函数
- 修改和添加功能示例代码
- 增加计算进度条显示
### v1.0.0 (2019/10/29)
- 发布初始版本
- 添加README
## 协议

* GNU GPLv3

## P.S.
* GB2312
49 changes: 0 additions & 49 deletions Sample/LaserWriting/Laser.m

This file was deleted.

78 changes: 0 additions & 78 deletions Sample/Lens and Axilens/Axilens.m

This file was deleted.

28 changes: 0 additions & 28 deletions Sample/Lens and Axilens/Lens.m

This file was deleted.

Binary file removed Sample/Metasurface/F128.bmp
Binary file not shown.
27 changes: 0 additions & 27 deletions Sample/Template.m

This file was deleted.

6 changes: 0 additions & 6 deletions copyMakeBorder.m
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,6 @@
%
% M - 返回的扩充矩阵
%
% Author Information
% -----------------------
% Author : rlxu
% Update Date : 2019-10-26
%
% Copyright 2019 Key Laboratory of ICSP Anhui University

[R, C, D] = size(data);
if R > Rows || C > Cols
Expand Down
Loading

0 comments on commit b178f7e

Please sign in to comment.