This repository contains CUDA implementation for the paper:
Songyou Peng, Bjoern Haefner, Yvain Queau and Daniel Cremers, "Depth Super-Resolution Meets Uncalibrated Photometric Stereo", In IEEE Conference on Computer Vision (ICCV) Workshop, 2017.
Original implementation in MATLAB can be found here.
If you use this code, please cite the paper:
@inproceedings{peng2017iccvw,
author = {Songyou Peng and Bjoern Haefner and Yvain Qu{\'e}au and Daniel Cremers},
title = {{Depth Super-Resolution Meets Uncalibrated Photometric Stereo}},
year = {2017},
booktitle = {IEEE International Conference on Computer Vision (ICCV) Workshop},
}
Contact Songyou Peng ✉️ for questions, comments and reporting bugs.
Move to the linux build folder and compile using the makefile. Specifically, from the project root, execute the following commands:
cd build/linux
make
export LD_LIBRARY_PATH=../../opencv/lib:../../matio/lib
Following command line options are available while running:
Option | Description | Default Value |
---|---|---|
--blockx -x |
CUDA kernel block's x dimension | 256 |
--blockx -x |
CUDA kernel block's y dimension | 4 |
-d --dsloc |
Path to dataset as mat file or folder containing images (depth images must be 16bit) |
|
-device --g |
CUDA device to run the application on | 0 |
-dstype --t |
Dataset type, can be as matlab for MAT fileinput or images for images as input,with depthimages having bitdepth 16 |
images |
When using MATLAB mat files as the input dataset, from the PROJECT_ROOT/build/linux
folder, run the command
./bin/SRmeetsPS-CUDA --dstype="matlab" --dsloc="../../dataset/Matlab/mitten_sf2.mat"
When using image files as input, run
./bin/SRmeetsPS-CUDA --dstype="images" --dsloc="../../dataset/Images/Mitten"
A Visual Studio 2014 solution project can be found in PROJECT_ROOT\build\windows
. Unlike the linux project, the dependent libraries are not checked in the repository, and requires OpenCV 3.3 and matio 1.5.10 binaries to build and run.