Copyright (C) 2010 Brandon M. Smith and Li Zhang
Author: Brandon M. Smith, Dept. of Computer Sciences, UW-Madison
Email: bmsmith@cs.wisc.edu
Personal web: http://www.cs.wisc.edu/~bmsmith
Project web: http://www.cs.wisc.edu/~lizhang/projects/mvstereo/cvpr2009/
Description:
This is a C++ implementation of the multi-view stereo matching algorithm
described in:
Brandon M. Smith, Li Zhang, Hailin Jin. Stereo Matching with Non-
parametric Smoothness Priors in Feature Space. IEEE Computer Society
Conference on Computer Vision and Pattern Recognition, June 2009.
This program is free software: you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the Free
Software Foundation, either version 3 of the License, or (at your option)
any later version.
This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
for more details.
You should have received a copy of the GNU General Public License along
with this program. If not, see .
QUICK START
===========
The source code (located in the src folder) can be compiled in Windows using
Visual Studio 2008 or in Linux using the make command. An executable called
mvstereo (Linux), or mvstereo.exe (Windows), will be created in the bin folder.
The user supplies the program with all parameters and input/output filenames
via an arguments text file. To run the program on the command line, type
Linux:
mvstereo -af
Windows:
mvstereo.exe -af
Two example arguments text files exist in the bin directory:
af_full_example.txt contains all possible parameters.
af_simple_example.txt contains the minimum parameters required to run the
program, with all remaining parameters set to default values.
The above two files will produce the same output using the example input data
in the data directory. All results will be saved to data/results. The directory
in which results are saved must exist before the program executes.
DETAILED INSTRUCTIONS
=====================
At a minimum, the user must specify the following in the arguments file:
* N input image filenames (where N is greater than or equal to 2),
* N camera parameter filenames,
* a set of N-1 camera pairings that span the set of camera viewpoints,
* the inverse of the min and max depths, and
* N output disparity/depth map filenames.
Input image filenames (only pgm, ppm, and pfm formats supported):
-imFiles N
...
Camera parameter filenames:
-camFiles N
...
Camera pairings:
-camPairs N-1
...
The inverse of the min and max depths:
-zMinInv
-zMaxInv
Output disparity/depth map filenames:
-dptSmoothFiles 5
...
Additionally, the following parameters can be set, where <...> is a number.
The default value for each of the parameters is given in bin/
af_full_example.txt and also in src/data.h. A default value will be used if
the parameter is not given in the arguments file (as in bin/
af_simple_example.txt).
-runMstnbr
-runMvstereo
-runNoiseremoval
-runTrilatfilt
-numLayers
-dptScale
-initDptValue
-birchfield