Loading [MathJax]/extensions/tex2jax.js
  • <xmp id="om0om">
  • <table id="om0om"><noscript id="om0om"></noscript></table>

  • DriveWorks SDK Reference
    5.20.37 Release
    For Test and Development only

    All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
    Connected Components Sample

    Description

    The Connected Components sample demonstrates how to utilize the connected components in dw_imageprocessing module.

    Running the Sample

    The command line for the sample is:

    ./sample_connected_components  --video=[path/to/video/file] --offscreen=[0|1|2] --profiling=[0|1] --autoExit=[0|1]
    

    where

    --video=<path/to/video/file>
        Path to input video file.
        Default: path/to/data/samples/recordings/suburb0/video_0_roof_front_120.mp4
    
    --offscreen=[0|1|2]
        Used to run windowed apps in headless mode:
            0: Displays window.
            1: Displays offscreen window.
            2: No window created.
            Default value: 0
    
    --profiling=[0|1]
        When set to 1, enables sample profiling. Otherwise, profiling is disabled.
        Default value: 1
    
    --autoExit=[0|1]
            Used for auto-exit function:
            0: sample replayes when reaching the end of the data stream.
            1: sample auto exits when reaching the end of the data stream.
            Default value: 0
    
    Note
    If protocol flag is not set default is set to camera.virtual is set as default.

    Output

    The sample creates a window and plays a video processed with a connected components labeling algorithm. Every frame is converted to grey scale image and threshold is applied to binarize it. The algorithm then assigns unique label to every connected region. Note there is no any tracking included to the sample. Thus as assigned labels may differ from frame to frame the video may flicker a bit.

    Labeled image

    Additional information

    For more details on camera calibration see Connected Components.

    人人超碰97caoporen国产