Skip to content

Commit

Permalink
Add sources
Browse files Browse the repository at this point in the history
  • Loading branch information
gishi523 committed Apr 14, 2017
1 parent 72b0b47 commit 1f9cd1f
Show file tree
Hide file tree
Showing 8 changed files with 963 additions and 0 deletions.
20 changes: 20 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
cmake_minimum_required(VERSION 2.8)

find_package(OpenCV REQUIRED)
find_package(OpenMP)

include_directories(${OpenCV_INCLUDE_DIRS})

if (CMAKE_COMPILER_IS_GNUCXX)
set(CMAKE_CXX_FLAGS "-std=c++11 -Wall -O3")
endif (CMAKE_COMPILER_IS_GNUCXX)

if (OPENMP_FOUND)
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${OpenMP_C_FLAGS}")
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}")
endif()

file(GLOB srcs *.cpp *.h*)

add_executable(stixelworld ${srcs})
target_link_libraries(stixelworld ${OpenCV_LIBS})
51 changes: 51 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# multilayer-stixel-world
An implementation of multi-layered stixel computation

====

![stixel-world]()

## Description
- An implementation of the Multi-Layered Stixel computation based on [1].
- Extracts the static Stixels from the input disparity map.
- Not a dynamic Stixel. It means that tracking and estimating motion of each Stixel is not supported.

## References
- [1] [The Stixel World - A Compact Medium-level Representation for Efficiently Modeling Three-dimensional Environments](https://www.mydlt.de/david/page/publications.html)

## Requirement
- OpenCV
- OpenMP (optional)

## How to build
```
$ git clone https://github.com/gishi523/multilayer-stixel-world.git
$ cd multilayer-stixel-world
$ mkdir build
$ cd build
$ cmake ../
$ make
```

## How to use
```
./stixelworld left-image-format right-image-format camera.xml
```
- left-image-format
- the left image sequence
- right-image-format
- the right image sequence
- camera.xml
- the camera intrinsic and extrinsic parameters

### Example
```
./stixelworld images/img_c0_%09d.pgm images/img_c1_%09d.pgm ../camera.xml
```

### Data
- I tested this work using the Daimler Ground Truth Stixel Dataset
- http://www.6d-vision.com/ground-truth-stixel-dataset

## Author
gishi523
10 changes: 10 additions & 0 deletions camera.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0"?>
<opencv_storage>
<FocalLengthX>1267.485352</FocalLengthX>
<FocalLengthY>1224.548950</FocalLengthY>
<CenterX>472.735474</CenterX>
<CenterY>175.787781</CenterY>
<BaseLine>0.214382</BaseLine>
<Height>1.170000</Height>
<Tilt>0.081276</Tilt>
</opencv_storage>
Loading

0 comments on commit 1f9cd1f

Please sign in to comment.