Running the Sample Application

To run the sample:

  1. Follow the steps in Building and Running the NvMedia Samples.
  2. Launch the application:

$ stereosens -h

$ flowsense -h

The sample application command syntax is as follows:

for stereo:

$ stereosense [options]

The command line options are as follows.

Required Command Line Options
Option Parameter Description
-input Left view file name Specifies left view file name with full path.
-ref Right view file name Specifies right view 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
-ndisp

128

256

Max Disparity value in terms of pixels
-lrCheck

0: Disable reverse search (default)

1: Enable reverse search

Enable reverse search generates right view disparity map.
-lrCheckThr An integer Decides threshold for lrcheck
-nframes An integer Number of frames used for stereo estimation. Default: one frames
-profile

0: Disable Profile

1: Enable Profile with Async mode

: Enable Profile with Sync mode

Enable OFA profiling to get SW and HW overhead
-etype

0: use default SGM parameters value (default)

1: use configurable Values for SGM parameters

Enable configurable SGM parameters
-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