Superpixel Benchmark
Superpixel benchmark, tools and algorithms.
Functions
main.cpp File Reference
#include <fstream>
#include <opencv2/opencv.hpp>
#include <boost/filesystem.hpp>
#include <boost/timer.hpp>
#include <boost/program_options.hpp>
#include "dasp_opencv.h"
#include "io_util.h"
#include "superpixel_tools.h"
#include "visualization.h"

Functions

int main (int argc, const char **argv)
 Command line tool for running DASP. Usage: More...
 

Function Documentation

int main ( int  argc,
const char **  argv 
)

Command line tool for running DASP. Usage:

Copyright (c) 2016, David Stutz Contact: david.nosp@m..stu.nosp@m.tz@rw.nosp@m.th-a.nosp@m.achen.nosp@m..de, davidstutz.de All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
  3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

1 $ ../bin/dasp_cli --help
2 Allowed options:
3  -h [ --help ] produce help message
4  -i [ --input ] arg the folder to process
5  -d [ --depth ] arg the folder containing the
6  corresnponding depth images.
7  --intrinsics arg directory containing intrinsic matrices
8  (as CSV files); when set,
9  --principal-x/y and --focal are
10  overwritten
11  --principal-x arg (=325.582458) principal point x coordinate (default
12  for NYUV2)
13  --principal-y arg (=253.73616) principal point y coordinate (default
14  for NYUV2)
15  --focal arg (=519) focal length (default for NYUV2;
16  rounded from focal-x and focal-y)
17  --cropping-x arg (=16) size of cropped border in x (default
18  for cropped NYUV2)
19  --cropping-y arg (=16) size of cropped border in x (default
20  for cropped NYUV2)
21  -m [ --seed-mode ] arg (=0) seed mode (0: random, 1: spds, 2:
22  delta)
23  -s [ --superpixels ] arg (=400) number of superpixels (overwrites
24  'radius')
25  -p [ --spatial-weight ] arg (=0.300000012)
26  spatial weight
27  -n [ --normal-weight ] arg (=0.200000003)
28  normal weight
29  -t [ --iterations ] arg (=5) iterations
30  -o [ --csv ] arg specify the output directory (default
31  is ./output)
32  -v [ --vis ] arg visualize contours
33  -x [ --prefix ] arg output file prefix
34  -w [ --wordy ] verbose/wordy/debug
Author
David Stutz