visual3d:documentation:pipeline:metric_commands:metric_compute_temporal_distance
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_compute_temporal_distance [2025/09/18 14:26] – wikisysop | visual3d:documentation:pipeline:metric_commands:metric_compute_temporal_distance [2025/09/23 19:10] (current) – [Examples] wikisysop | ||
---|---|---|---|
Line 84: | Line 84: | ||
|**HEIGHT**|**Signal type and name defining height**| | |**HEIGHT**|**Signal type and name defining height**| | ||
|**---_EVENT**|**Event signal names for foot on/off**| | |**---_EVENT**|**Event signal names for foot on/off**| | ||
- | |**STRICT_EVENT_SEQUENCE_VALIDATION**|****| | + | |**STRICT_EVENT_SEQUENCE_VALIDATION**|**---**| |
- | |**R/ | + | |**R/ |
- | |**INCLUDE/ | + | |**INCLUDE/ |
- | |**EVENT_INSTANCE**|****| | + | |**EVENT_INSTANCE**|**Which instance of an event to use**| |
- | |**COMPUTE_--------**|****| | + | |**COMPUTE_--------**|**Which values to be computed or excluded**| |
- | |**TREADMILL_SPEED**|****| | + | |**TREADMILL_SPEED**|**Speed of treadmill used for recording (if applicable)**| |
- | |**TREADMILL_DIRECTION**|****| | + | |**TREADMILL_DIRECTION**|**Direction of treadmill used for recording (if applicable)**| |
===== Temporal Distance Dialog ===== | ===== Temporal Distance Dialog ===== | ||
Line 104: | Line 104: | ||
====Examples==== | ====Examples==== | ||
- | ===Simple example=== | + | ===Simple example: Flight Time === |
- | Showing functionality of the command, using a diagram possibly to show output. | + | To use the **Compute Temporal Distance** |
- | ===Complex example=== | + | < |
+ | Automatic_Gait_Events | ||
+ | ! / | ||
+ | ! /USE_TPR=TRUE | ||
+ | ! / | ||
+ | ; | ||
+ | </ | ||
- | Combine with other commands | + | Now that key events in the gait cycle have been identified we can use the **Compute Temporal Distance** command to compute the mean left and right flight time for each trial. |
+ | Flight time is the average time from LTO to RHS (ensuring no LHS or RTO events occur between LTO and RHS) and RTO to LHS (ensuring no RHS or LTO events occur between RTO and LHS). | ||
+ | * Left flight time is calculated from LTO to RHS. | ||
+ | * Right flight time is calculated from RTO to LHS. | ||
+ | < | ||
+ | Metric_Compute_Temporal_Distance | ||
+ | ! / | ||
+ | / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ; | ||
+ | </ | ||
+ | |||
+ | Once the pipeline has been executed you should see a new **TEMPORAL_DISTANCE** folder in the METRIC section of the Signals and Events tab. Within this folder you can find the mean flight time for the left and right sides. | ||
+ | |||
+ | {{: | ||
+ | |||
+ | ===Complex example: Comparing Left and Right Stride Length for treadmill trial=== | ||
+ | |||
+ | Here we will look at a gait cycle trial using data for users running on a treadmill and compare their mean stride length for the left and right sides. | ||
+ | |||
+ | Similarly to above, we will start by using **Automatic Gait Events** to define the gait cycle. | ||
+ | |||
+ | Next, we will use **Metric_Compute_Temporal_Distance** to compute the length of each stride for both sides, and adjust the command parameters to account for the speed of the single belt treadmill used to record the data. In this case the treadmill was moving at 1.25 m/s and the subject walking in the y-direction (0,1,0). | ||
+ | |||
+ | < | ||
+ | Metric_Compute_Temporal_Distance | ||
+ | ! / | ||
+ | / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | ! / | ||
+ | ! / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | ! / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | ; | ||
+ | </ | ||
+ | |||
+ | The computed stride data can now be found in the **Metric** folder under **Temporal_Distance**. | ||
+ | |||
+ | To compare the left and right stride lengths we will create a horizontal chart in the **Reports** tab. | ||
+ | |||
+ | Start by adding a new page to your report, and adding **Temporal and Distance Metrics** as an item. | ||
+ | |||
+ | {{: | ||
+ | |||
+ | Fill out the dialog box as so: | ||
+ | |||
+ | {{: | ||
+ | |||
+ | Click done. You should now see a bar chart comparing the left and right step length for your trial. | ||
+ | |||
+ | {{: | ||
===== Multisubject Support ===== | ===== Multisubject Support ===== | ||
visual3d/documentation/pipeline/metric_commands/metric_compute_temporal_distance.1758205581.txt.gz · Last modified: 2025/09/18 14:26 by wikisysop