visual3d:documentation:pipeline:event_commands:event_maximum
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
visual3d:documentation:pipeline:event_commands:event_maximum [2024/07/16 16:58] – removed sgranger | visual3d:documentation:pipeline:event_commands:event_maximum [2025/04/29 19:04] (current) – wikisysop | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Event Maximum ====== | ||
+ | |||
+ | ===== Overview ===== | ||
+ | The **Event_Maximum** command is used to detect the maximum value of a specified signal within a defined event sequence or range, and create an event at that location. This command can evaluate different components of a signal (X, Y, Z, Residual) and can apply offsets to shift the detected event if needed. | ||
+ | * Useful for identifying peak forces, peak joint angles, or maximum accelerations during specific phases of a motion, such as between initial contact and toe-off during gait. | ||
+ | * If the global maxima are needed, see the [[Visual3D: | ||
+ | * To review the difference between local and global maximum values please see [[Visual3D: | ||
+ | |||
+ | ===== Pipeline Command ===== | ||
+ | The command below is as seen in the Visual3D application: | ||
+ | |||
+ | < | ||
+ | Event_Maximum | ||
+ | / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! /THRESHOLD= | ||
+ | ; | ||
+ | </ | ||
+ | |||
+ | ===== Command Parameters ===== | ||
+ | The following table shows the command parameters and descriptions: | ||
+ | |||
+ | |**Parameter** | ||
+ | |**/ | ||
+ | |**!/ | ||
+ | |**!/ | ||
+ | |**!/ | ||
+ | |**!/ | ||
+ | |**!/ | ||
+ | |**!/ | ||
+ | |**!/ | ||
+ | |**!/ | ||
+ | |**!/ | ||
+ | |**!/ | ||
+ | |**!/ | ||
+ | |**!/ | ||
+ | |**!/ | ||
+ | |**!/ | ||
+ | |**!/ | ||
+ | |||
+ | |||
+ | ===== Dialog ===== | ||
+ | The command can be edited in a text editor or in the dialog. To edit in the dialog, click on the **Edit** button in the pipeline workshop or double-click on the pipeline command. The dialog is shown below: | ||
+ | |||
+ | {{: | ||
+ | |||
+ | * **New Event Label Name**: Name of event created at the local maximum points. | ||
+ | * **Signal Component**: | ||
+ | * **Frame Window**: Size of window to look for a local maximum around each frame. | ||
+ | * **Frame Offset**: Shift the resulting event by a number of frames. | ||
+ | * **Time Offset**: Move the event by a time shift (in seconds) | ||
+ | * **Threshold**: | ||
+ | * **Event Instance to Create**: Choose which maximum to create if there are multiple peaks in a search window | ||
+ | * **Event Sequence and Instance for Range**: Limits where to search for maxima | ||
+ | * **Subsequence and Instance within Event Sequence**: Further limits search inside smaller phase within main event range. | ||
+ | |||
+ | |||
+ | ---- | ||
+ | ===== Examples ===== | ||
+ | The following examples will go through the use of the **Event_Maximum** command in the Visual3D application. | ||
+ | |||
+ | ==== Example 1: Simple Use Case ==== | ||
+ | The first example will cover the command using the dialog as well as the command text. To create the RKFlex_MaxLocal event using the Event_Maximum dialog box: | ||
+ | |||
+ | 1. Add the **Event_Maximum** command to the pipeline. Then, enter information into dialog box: | ||
+ | |||
+ | **Event_Name: | ||
+ | **Select Frame Offset:** 0\\ | ||
+ | **Signal Components: | ||
+ | **Event Sequence Instance: | ||
+ | |||
+ | |||
+ | |{{: | ||
+ | Event_Maximum | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | / | ||
+ | ! /THRESHOLD= | ||
+ | ; | ||
+ | </ | ||
+ | |||
+ | 2. Close the dialog, on the Signals and Events tab, select the desired signal from the data tree, in this case **Right_Knee_Angle**. Navigate into the LINK_MODEL_BASED items folder, and select the checkbox beside the signal. | ||
+ | |||
+ | 3. Open the pipeline workshop again, and then click on **Import Selected Signals**.\\ | ||
+ | {{: | ||
+ | |||
+ | **RKFlex_MaxLocal** will be created at the maximum values during the full gait cycle. As seen below: | ||
+ | |||
+ | |{{: | ||
+ | |||
+ | |||
+ | ==== Example 2: Complex ==== | ||
+ | |||
+ | In this example, the local maxima of the right foot angular acceleration during the full trial is identified. Then, the values of this event are extracted. | ||
+ | |||
+ | Use the Event_Maximum command to find the peaks in the acceleration signal, the component is set to Y and frame window is increased to 60. | ||
+ | |||
+ | The signal used to represent the acceleration was taken from the KINETIC_KINEMATIC folder - RFT (Right Foot) | ||
+ | |||
+ | < | ||
+ | Event_Maximum | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | ! / | ||
+ | ! / | ||
+ | / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | / | ||
+ | ! /THRESHOLD= | ||
+ | ; | ||
+ | </ | ||
+ | |||
+ | Then use Metric_Signal_Value_At_Event to extract the actual Y-acceleration values at these peaks for analysis: | ||
+ | |||
+ | < | ||
+ | Metric_Signal_Value_At_Event | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | ! / | ||
+ | / | ||
+ | ! / | ||
+ | / | ||
+ | ! / | ||
+ | / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ; | ||
+ | </ | ||
+ | |||
+ | |||
+ | ===== Notes ===== | ||
+ | |||
+ | === Version 5 === | ||
+ | |||
+ | In version 5 the command has been extended to include the Event_Sequence and Exclude_Events parameters. | ||
+ | |||
+ | |{{: | ||
+ | Event_Maximum | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | !/ | ||
+ | !/ | ||
+ | !/ | ||
+ | !/ | ||
+ | !/ | ||
+ | !/ | ||
+ | !/ | ||
+ | !/ | ||
+ | / | ||
+ | ; | ||
+ | </ | ||
+ | |||
+ | * Other options within the command such as **Exclude Event**, and **Select Subsequence** are explained in detail on the [[Visual3D: | ||
+ | * If /Threshold is empty, all local maximum are identified. | ||
+ | * If /Threshold has a value or expression, only local maximum that are greater than the threshold are identified. | ||
+ | |||
+ | === Version 4 === | ||
+ | |||
+ | < | ||
+ | Event_Maximum | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | ; | ||
+ | </ | ||
+ | |||
+ | Dialog that pops up when pipeline selection is edited by double clicking with the left mouse button. | ||
+ | |||
+ | {{: | ||
+ | |||
+ | |||
visual3d/documentation/pipeline/event_commands/event_maximum.1721149081.txt.gz · Last modified: 2024/07/16 16:58 by sgranger