User Tools

Site Tools


visual3d:documentation:pipeline:signal_commands:subtract_constant_from_signals

Subtract Constant from Signals

Overview

The Subtract Constant from Signals command can be used to subtract a constant from 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:

Subtract_Constant_From_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 subtract the constant from
Signal FolderThe name of the signal folder
Signal NamesThe name(s) of the signal(s) to subtract the constant from
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 subtracted from the signal(s)

Dialog

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

Example: Subtracting Constant from Joint Angle and Landmark

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

Subtract_Constant_From_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/subtract_constant_from_signals.txt · Last modified: by wikisysop