visual3d:documentation:pipeline:metric_commands:metric_frames_between_events
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
visual3d:documentation:pipeline:metric_commands:metric_frames_between_events [2024/06/26 20:26] – created sgranger | visual3d:documentation:pipeline:metric_commands:metric_frames_between_events [2025/09/24 13:43] (current) – [Complex Example: Finding time between events using frame rate] wikisysop | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== | + | ====== |
- | Computes | + | ====Overview==== |
+ | The **Metric Frames Between Events** computes | ||
**Note that the frames will be at the POINT RATE because Visual3D computes Events at POINT RATE.** | **Note that the frames will be at the POINT RATE because Visual3D computes Events at POINT RATE.** | ||
- | \\ | ||
+ | ====Pipeline Command==== | ||
+ | |||
+ | The command can be found in the workshop as so: | ||
< | < | ||
- | Frames_Between_Events | + | Metric_Frames_Between_Events |
- | /Event_Sequence= A list of events (separated by " | + | ! /RESULT_METRIC_FOLDER=PROCESSED |
- | /Exclude_Events= This Event_Sequence must not be during the sequence requested. For example, LTO_RHS | + | /RESULT_METRIC_NAME= |
- | /Metric_Name= The name of the metric signal. For example, Right_Terminal_Double_Limb_Support | + | /EVENT_SEQUENCE= |
- | /Generate_Mean_And_StdDev=(True or False)Generate the mean and standard deviation for all of the metrics created | + | /EXCLUDE_EVENTS= |
- | /Append to Existing Values=(True or False)Append this list of metrics to an existing metric of the same result name | + | ! /GENERATE_MEAN_AND_STDDEV=TRUE |
+ | ! / | ||
+ | ; | ||
</ | </ | ||
- | \\ | + | ====Command Parameters==== |
- | \\ | + | |
- | Dialog that pops up when pipeline selection is edited by double clicking with the left mouse button.\\ | + | |
- | {{MetricTimeBtwnEventsDlg.jpg}}\\ | + | |
- | \\ | + | |
+ | The following table shows the command parameters seen above and their descriptions: | ||
- | ===== Example ===== | + | |**RESULT_METRIC_FOLDER**|**The name of the result signal folder**| |
+ | |**RESULT_METRIC_NAME**|**The name of the result signal**| | ||
+ | |**EVENT_SEQUENCE**|** A list of events (separated by " | ||
+ | |**EXCLUDE_EVENTS**|**This Event Sequence must not be during the sequence requested. For example, LTO_RHS**| | ||
+ | |**GENERATE_MEAN_AND_STDDEV**|**(True or False)Generate the mean and standard deviation for all of the metrics created**| | ||
+ | |**APPEND_TO_EXISTING_VALUES**|**(True or False)Append this list of metrics to an existing metric of the same result name**| | ||
- | \\ | + | ====Dialog==== |
+ | The command can be edited in a text editor or in a dialog form. To edit in the dialog pop up form either click on the **Edit** button in the pipeline workshop or double-click on the pipeline command. The dialog is shown below. | ||
+ | |||
+ | {{: | ||
+ | |||
+ | |||
+ | The dialog box allows you to assign values to the command parameters outlined above. | ||
+ | |||
+ | ====Simple Example: Frames between steps==== | ||
+ | If you are conducting analysis on a gait trial with gait events that have been defined, you can use **Metric Frames Between Events** to find the number of frames between each stride and compare. The number of frames separating one stride from another can be an indication of stride length and/or walking speed. Use the pipeline command below to perform the operation. | ||
+ | |||
+ | < | ||
+ | Metric_Frames_Between_Events | ||
+ | ! / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | ! / | ||
+ | ; | ||
+ | </ | ||
+ | |||
+ | A new metric folder containing the following data can be seen: | ||
+ | |||
+ | {{: | ||
+ | |||
+ | ====Complex Example: Finding time between events using frame rate==== | ||
+ | Most movement trials will provide important trial information, | ||
+ | |||
+ | First, we will use the automatic gait events command to add tags to events in the trial like heel strikes and toe offs. | ||
+ | |||
+ | < | ||
+ | Automatic_Gait_Events | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ; | ||
+ | </ | ||
+ | |||
+ | Now that these events have been defined we can use **Metric Frames Between Events** to determine how many frames pass between each left toe off and the next heel strike, as well as the mean. | ||
+ | |||
+ | < | ||
+ | Metric_Frames_Between_Events | ||
+ | ! / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | ! / | ||
+ | ! / | ||
+ | ; | ||
+ | </ | ||
+ | |||
+ | Using the capture rate of 150 frames/ | ||
+ | |||
+ | < | ||
+ | Divide_Signal_By_Constant | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | ! / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | ; | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | Divide_Signal_By_Constant | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | ! / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | ; | ||
+ | </ | ||
- | |< | + | You should now see two new folders named **Stride_Time** and **Stride_Time_MEAN** containing stride time data for each trial. |
+ | {{: | ||
+ | {{: | ||
==== Visual3D Versions supporting Subject Prefixes ==== | ==== Visual3D Versions supporting Subject Prefixes ==== | ||
visual3d/documentation/pipeline/metric_commands/metric_frames_between_events.1719433615.txt.gz · Last modified: 2024/06/26 20:26 by sgranger