visual3d:documentation:pipeline:signal_commands:subtract_constant_from_signals
Table of Contents
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 Types | The type of signal to subtract the constant from |
| Signal Folder | The name of the signal folder |
| Signal Names | The name(s) of the signal(s) to subtract the constant from |
| Signal Components | The signal components to be included in the operation |
| Result Types | The type of the resulting signal |
| Result Folder | The name of the resulting folder |
| Result Name | The name of the resulting signal |
| Apply As Suffix To Signal Name | The result is given the same name as the original signal with the suffix added |
| Constant | The constant to be subtracted from the signal(s) |
Dialog
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

