Skip to content

NickBuryak/PhotometricStereo

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Check the requirements: 1) Python 2.7 2) pip (http://pip.readthedocs.org/en/latest/installing.html) 3) If pip is installed, run pip install -r requirements.txt to install the rest of the requirements (PIL, numpy and scipy)

Running:

First, create a folder called output:
	mkdir output

This package has 4 executables:

1) 	src/compute_light_directionts.py
   	How to use it:

   	Run
   		python src/compute_light_directions.py images/chrome/chrome.txt output/lights.txt

   	to compute the light directions

2)	src/simple_photometric_stereo.py
	How to use it:

	Run
		python src/simple_photometric_stereo.py images/<TEST>/<TEST>.txt
		output/lights.txt output/calibrated_<TEST>_%s.png

	to compute the albedo and normal using the calibrated photometric stereo

3)	src/unknown_light_photometric_stereo.py
	How to use it:

	Run
		python src/unknown_light_photometric_stereo.py images/<TEST>/<TEST>.txt output/calibrated_<TEST>_%s.png

	to compute the albedo and normal using the uncalibrated photometric stereo

4) 	1) 	src/compute_light_directionts.py
   	How to use it:

   	Run
   		python src/compute_light_directions.py images/<TEST>/<TEST>.txt output/(calibrated|uncalibrated)_<TEST>_normal.png output/(calibrated|uncalibrated)_<TEST>_%s.png

   	to compute the depth map

For convenience, you can simply run
	make all
to run all the test cases. The result will be in the output_folder.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 88.1%
  • Makefile 11.9%