duplicate

Configuration

Variable

Default

Tunable

Description

copies

1

NO

The number of copies to make of each input.

Input Ports

Port name

Data Type

Flags

Description

input

_flow_dependent/tag

_required

Arbitrary input data.

Output Ports

Port name

Data Type

Flags

Description

duplicate

_flow_dependent/tag

_required, _shared

Duplicated input data.

Pipefile Usage

The following sections describe the blocks needed to use this process in a pipe file.

Pipefile block

# ================================================================
process <this-proc>
  :: duplicate
# The number of copies to make of each input.
  copies = 1
# ================================================================

Process connections

The following Input ports will need to be set

# This process will consume the following input ports
connect from <this-proc>.input
         to   <upstream-proc>.input

The following Output ports will need to be set

# This process will produce the following output ports
connect from <this-proc>.duplicate
         to   <downstream-proc>.duplicate

Class Description

class duplicate_process : public sprokit::process

Duplicates input to a single output.

\process Duplicates input to a single output.

\iports

\iport{input} Arbitrary input data.

\oports

\oport{duplicate} Duplicated input data.

\configs

\config{copies} The number of copies to make per input.

Public Functions

duplicate_process(kwiver::vital::config_block_sptr const &config)

Constructor.

Parameters:

config – The configuration for the process.

~duplicate_process()

Destructor.

class priv