# photometric-stereo
A MATLAB Implementation of the Basic Photometric Stereo Algorithm
This project implements the basic photometric stereo algorithm that essentially uses the least squares method. Given twelve photometric images and their corresponding light directions, the surface normals are first computed as an overdetermined linear system. Basically, this linear system captures a simple physics relationship: a pixel’s intensity is proportional to the dot product between the light direction and the surface normal at that pixel.
Next, from the surface normals can the height map be solved as another overdetermined system. This second linear system captures the relationship that the surface normal at a pixel is perpendicular to the vector formed by this pixel and its immediate neighbor.
## Results
![](https://raw.githubusercontent.com/xiumingzhang/photometric-stereo/master/results/all1.png)![](https://raw.githubusercontent.com/xiumingzhang/photometric-stereo/master/results/all2.png)
## Example Usage
Just run script `run_ps.m`.
### Acknowledgements
The data is by courtesy of Steven Seitz and available at [here](http://www.cs.washington.edu/education/courses/csep576/05wi/projects/project3/psmImages.zip). Dirk-Jan Kroon holds the copyright of `tga_toolbox`, containing `tga_read_image.m` and `tga_read_header.m`.
没有合适的资源?快使用搜索试试~ 我知道了~
A MATLAB Implementation of the Basic Photometric Stereo Algorith
共131个文件
tga:92个
png:20个
txt:9个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 198 浏览量
2023-07-24
20:10:04
上传
评论
收藏 12.19MB ZIP 举报
温馨提示
A MATLAB Implementation of the Basic Photometric Stereo Algorithm.zip
资源推荐
资源详情
资源评论
收起资源包目录
A MATLAB Implementation of the Basic Photometric Stereo Algorith (131个子文件)
buddha.normals.dat 1.99MB
buddha.depths.dat 680KB
tga_read_header.m 5KB
tga_read_image.m 3KB
compute_heightMap.m 3KB
compute_surfNorm.m 2KB
run_ps.m 1KB
photometric_stereo.m 922B
show_surfNorm.m 609B
README.md 1KB
all1.png 317KB
all2.png 205KB
rock_norm2.png 177KB
rock_norm1.png 139KB
owl_norm2.png 118KB
cat_norm2.png 99KB
gray_norm2.png 85KB
horse_norm2.png 82KB
buddha_norm2.png 81KB
owl_norm1.png 72KB
buddha_norm1.png 62KB
horse_norm1.png 58KB
cat_norm1.png 58KB
gray_norm1.png 36KB
rock_height.png 18KB
owl_height.png 14KB
buddha_height.png 12KB
cat_height.png 11KB
gray_height.png 9KB
horse_height.png 9KB
horse.3.tga 510KB
horse.2.tga 510KB
horse.11.tga 510KB
horse.0.tga 510KB
horse.9.tga 510KB
horse.5.tga 510KB
horse.10.tga 510KB
horse.8.tga 510KB
horse.mask.tga 510KB
horse.4.tga 510KB
horse.6.tga 510KB
horse.1.tga 510KB
horse.7.tga 510KB
gray.0.tga 510KB
gray.8.tga 510KB
gray.3.tga 510KB
gray.mask.tga 510KB
gray.2.tga 510KB
gray.5.tga 510KB
gray.7.tga 510KB
gray.1.tga 510KB
gray.4.tga 510KB
gray.6.tga 510KB
gray.9.tga 510KB
gray.10.tga 510KB
gray.11.tga 510KB
rock.7.tga 510KB
rock.8.tga 510KB
rock.3.tga 510KB
rock.9.tga 510KB
rock.2.tga 510KB
rock.mask.tga 510KB
rock.4.tga 510KB
rock.11.tga 510KB
rock.1.tga 510KB
rock.6.tga 510KB
rock.0.tga 510KB
rock.10.tga 510KB
rock.5.tga 510KB
cat.9.tga 510KB
cat.8.tga 510KB
cat.6.tga 510KB
cat.1.tga 510KB
cat.11.tga 510KB
cat.0.tga 510KB
cat.3.tga 510KB
cat.4.tga 510KB
cat.5.tga 510KB
cat.mask.tga 510KB
cat.2.tga 510KB
cat.7.tga 510KB
cat.10.tga 510KB
chrome.8.tga 510KB
chrome.9.tga 510KB
chrome.3.tga 510KB
chrome.mask.tga 510KB
chrome.0.tga 510KB
chrome.7.tga 510KB
chrome.2.tga 510KB
chrome.11.tga 510KB
chrome.10.tga 510KB
chrome.1.tga 510KB
chrome.4.tga 510KB
chrome.5.tga 510KB
chrome.6.tga 510KB
owl.8.tga 510KB
owl.4.tga 510KB
owl.10.tga 510KB
owl.6.tga 510KB
owl.3.tga 510KB
共 131 条
- 1
- 2
资源评论
AbelZ_01
- 粉丝: 893
- 资源: 5441
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功