visual3d:documentation:pipeline:metric_commands:metric_cross_product
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_cross_product [2025/10/02 15:08] – [Examples] wikisysop | visual3d:documentation:pipeline:metric_commands:metric_cross_product [2025/10/03 17:35] (current) – [Example: Computing Step Length from Stride Vectors Using Dot Product] wikisysop | ||
---|---|---|---|
Line 63: | Line 63: | ||
The results are concatenated to an existing signal. | The results are concatenated to an existing signal. | ||
- | ====Examples==== | + | ====Example: Computing Step Length from Stride Vectors Using Dot Product==== |
+ | In this example the **Metric Cross Product** command is used along with **Metric Vector Between Events** and **Automatic Gait Events** to find the width of each step in a gait trial. | ||
- | ===Simple example: Step Width from Stride Vectors=== | + | First all files are selected as active and key gait events are defined for each trial: |
- | Here we use the **Metric Cross Product** command to compute step width from previously calculated stride vectors found using **Metric Vector Between Events**. | + | |
- | The command | + | < |
+ | Select_Active_File | ||
+ | / | ||
+ | ; | ||
+ | |||
+ | Automatic_Gait_Events | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ; | ||
+ | </ | ||
+ | |||
+ | Next **Metric Vector Between Events** | ||
+ | |||
+ | < | ||
+ | Metric_Vector_Between_Events | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ; | ||
+ | |||
+ | Metric_Vector_Between_Events | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | ! / | ||
+ | / | ||
+ | ! / | ||
+ | ; | ||
+ | |||
+ | Metric_Vector_Between_Events | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | ! / | ||
+ | ! / | ||
+ | ; | ||
+ | |||
+ | Metric_Vector_Between_Events | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | ! / | ||
+ | ! / | ||
+ | ; | ||
+ | </ | ||
+ | |||
+ | Now that the vectors for the feet have been defined, **Metric Cross Product** can be used to compute the dot product of those vectors and determine the step width for each stride: | ||
< | < | ||
+ | ! Calculate LeftStepWidth by taking cross product of LeftStep vector and StrideVectors_MEAN | ||
+ | ! Generate Mean and STD DEV | ||
+ | Metric_Cross_Product | ||
+ | ! / | ||
+ | / | ||
+ | ! / | ||
+ | / | ||
+ | / | ||
+ | ! / | ||
+ | ! / | ||
+ | / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | / | ||
+ | ; | ||
+ | |||
+ | ! Calculate RightStepWidth by taking cross product of RightStep vector and StrideVectors_MEAN | ||
+ | ! Generate Mean and STD DEV | ||
Metric_Cross_Product | Metric_Cross_Product | ||
! / | ! / | ||
Line 87: | Line 182: | ||
</ | </ | ||
- | In the case that you already know or have calculated step length | + | The **METRIC: |
- | ===Complex example=== | + | |
- | + | ||
- | For a more in depth example | + | |
+ | {{: | ||
+ | A more complete example including dot products is available [[visual3d: |
visual3d/documentation/pipeline/metric_commands/metric_cross_product.1759417705.txt.gz · Last modified: 2025/10/02 15:08 by wikisysop