Skip to content

imkaywu/PSKit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Photometric Stereo Toolkit

Dependencies

  • Matlab
  • Flann

Download

Clone this repository and download data.

git clone https://github.com/imkaywu/PSKit
cd PSKit

Dataset

For the structure of datasets of example-based photometric stereo, please visit here for details.

Source code

DfN: multiple algorithm to integrate a surface from normal/gradient map

  • compute_heightMap: compute the height map based on normal map and mask using linear least squares

  • integrate_horn2: estimate height map using Horn's method

  • DepthFromGradient: estimate height map from gradient map, from Ying Xiong's DfGBox

include/:

  • decode: decode from RGB image to normal map;

  • encode: encode from normal map to RGB image;

  • esti_surf: estimate height map from normal map

  • gen_normals: generate uniformly distributed normals

  • read_normals: read normals from a text file

  • show_surfNorm: display the surface normal

  • nmap2norm: transform Px3 normal matrix to MxNx3 normal map

  • norm2nmap: transform MxNx3 normal map to Px3 normal matrix

io/:

  • write_ply: write vertex and color information into a PLY file

src/: contains source code for various PS algorithms

Demo

run main_svbrdf and main_lls_ps.

Results

This browser does not support PDFs. Please download the PDF to view it: Download PDF.

License

MIT