Example: stereosense and Median Filtering

To run stereosense without median filtering:

./stereosense -input left_000165_1238x374.yuv -ref right_000165_1238x374.yuv -width 1238 -height 374 -flowcrcgen stereo.txt -nframes 20 -gridSize 3 -bitDepth 8 -chromaFormat 0 -ndisp 256 -o stereo.bin

To run stereosense with median filtering:

./stereosense -input left_000165_1238x374.yuv -ref right_000165_1238x374.yuv -width 1238 -height 374 -flowcrcgen stereo.txt -nframes 20 -gridSize 3 -bitDepth 8 -chromaFormat 0 -ndisp 256 -median 1 -o stereo.bin

for flow:

$ flowsense [options]

The command line options are as follows.

Required Command Line Options
Option Parameter Description
-input Left view file name Specifies input file name with full path.
-ref Right view file name Specifies reference file name with full path.
-width width of input Specifies the width of input surface
-height height of input Specifies the height of input surface
Optional Command Line Options
Option Parameter Description
-h n/a Displays guidance on using this application.
-gridSize

0: Grid Size 1x1

1: Grid Size 2x2

2: Grid Size 4x4

3: Grid Size 8x8

Output Grid Size set by Application.
-o Disparity Output file name Specifies disparity output file name with full path.
-co Cost Output file name Specifies cost output file name with full path.
-flowcrcgen A pathname of a file to be created with the filetype .txt Generates CRC values of disparity map in the specified file.
-flowcrcchk A pathname of an existing file with the filetype .txt Checks CRC values generated from disparity map against values from the specified file.
-chromaFormat

0 : 400

1 : 420

2 : 422

3 : 444

Chroma Format IDC of input yuv
-do_bwd Enable backward reference Use backward referencing for flow
-nframes An integer Number of frames used for flow estimation. Default: one pair frames
-profile

0: Disable Profile

1: Enable Profile with Async mode

2: Enable Profile with Sync mode

Enable OFA profiling to get SW and HW overhead
-bitDepth

8: 8 bits (default)

10: 10 bits

12: 12 bits

16: 16 bits

Number of bits per components on input surfaces.
-p1 An integer SGM penalty1 value
-p2 An integer SGM penalty2 value
-diag

0: Disable diagonal mode

1: Enable diagonal mode

SGM diagonal mode
-adaptiveP2

0: Disable adaptive P2

1: Enable adaptive P2

SGM adaptive p2 mode enabled
-alpha 0 to 3 alpha value to use along with adaptiveP2
-pass 1 to 3 Num Passes of SGM
-median

0: Disable median filtering (default)

1:Enable median filtering

Enable median filtering over output
-upsample

0: Disable upsampling (default)

1:Enable upsampling

Enable upsampling of output