User Tools

Site Tools


visual3d:documentation:pipeline:signal_commands:add_constant_to_signals

Add Constant to Signals

Overview

The Add Constant to Signals command can be used to add a constant to a specified component of any signal(s). This can be used in cases where there is a constant error across all frames of a signal that must be corrected, i.e. a marker or target that is incorrect by a known amount.

Pipeline Command

The pipeline command can be found in the Pipeline Workshop under the Signal Math folder as so:

Add_Constant_To_Signals
! /SIGNAL_TYPES=
! /SIGNAL_FOLDER=ORIGINAL
! /SIGNAL_NAMES=
! /SIGNAL_COMPONENTS=
! /RESULT_TYPES=
! /RESULT_FOLDERS=PROCESSED
! /RESULT_NAME=
! /APPLY_AS_SUFFIX_TO_SIGNAL_NAME=
! /CONSTANT=0
;

Command Parameters

The parameters that can be modified for this command are as follows:

Signal TypesThe type of signal to add a constant to
Signal FolderThe name of the signal folder
Signal NamesThe name(s) of the signal(s) to add a constant to
Signal ComponentsThe signal components to be included in the operation
Result TypesThe type of the resulting signal
Result FolderThe name of the resulting folder
Result NameThe name of the resulting signal
Apply As Suffix To Signal NameThe result is given the same name as the original signal with the suffix added
ConstantThe constant to be added to the signal(s)

Dialog

The dialog box that can be used to edit the command appears like so:

Example: Adding Constant to Joint Angle and Landmark

This example shows how one could add the same constant to two signals at the same time (note that the constant and signal choices here are meaningless and just used as an example):

Add_Constant_To_Signals
/SIGNAL_TYPES=LANDMARK+LINK_MODEL_BASED
! /SIGNAL_FOLDER=ORIGINAL
/SIGNAL_NAMES=LKJC+LAnkleAngle
/SIGNAL_COMPONENTS=ALL
 /RESULT_TYPES=DERIVED
! /RESULT_FOLDERS=PROCESSED
/RESULT_NAME=LKJC_new+LAnk_new
! /APPLY_AS_SUFFIX_TO_SIGNAL_NAME=
 /CONSTANT=7000
;
visual3d/documentation/pipeline/signal_commands/add_constant_to_signals.txt · Last modified: by wikisysop