- Matlab
- Flann
Clone this repository and download data.
git clone https://github.com/imkaywu/PSKit
cd PSKit
For the structure of datasets of example-based photometric stereo, please visit here for details.
-
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
-
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
write_ply: write vertex and color information into a PLY file
run main_svbrdf and main_lls_ps.
MIT