User Tools

Site Tools


visual3d:documentation:pipeline:metric_commands:metric_compute_temporal_distance

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
visual3d:documentation:pipeline:metric_commands:metric_compute_temporal_distance [2025/09/23 18:12] – [Examples] wikisysopvisual3d:documentation:pipeline:metric_commands:metric_compute_temporal_distance [2025/09/23 19:10] (current) – [Examples] wikisysop
Line 167: Line 167:
 {{:visual3d:documentation:pipeline:metric_commands:flight_time.png?500|}} {{:visual3d:documentation:pipeline:metric_commands:flight_time.png?500|}}
  
-===Complex example===+===Complex example: Comparing Left and Right Stride Length for treadmill trial===
  
-Combine with other commands and show step-by-step process for frequent use case+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).
 +
 +<code>
 +Metric_Compute_Temporal_Distance
 +! /GLOBAL_RESULT_METRIC_FOLDER=TEMPORAL_DISTANCE
 +/CALCULATE_PER_FILE=TRUE
 +! /CALCULATE_PER_ALL_CMO_GLOBALS=FALSE
 +! /CREATE_ALL_INSTANCES=FALSE
 +! /CREATE_EMPTY_VALUES=TRUE
 +! /RIGHT_FOOT_LOCATION=KINETIC_KINEMATIC::RFT::ProxEndPos
 +! /LEFT_FOOT_LOCATION=KINETIC_KINEMATIC::LFT::ProxEndPos
 +! /HEIGHT=METRIC::PROCESSED::HEIGHT
 +/RHS_EVENT=RHS
 +/LHS_EVENT=LHS
 +/RTO_EVENT=RTO
 +/LTO_EVENT=LTO
 +/STRICT_EVENT_SEQUENCE_VALIDATION=TRUE
 +! /RSTRIDE_EXCLUDE=
 +! /LSTRIDE_EXCLUDE=
 +! /INCLUDE_EVENTS=
 +! /EXCLUDE_EVENTS=
 +/EVENT_INSTANCE=ALL
 +/COMPUTE_SPEED=FALSE
 +/COMPUTE_STATURES_PER_SECOND=FALSE
 +! /COMPUTE_STRIDE_WIDTH=TRUE
 +! /COMPUTE_STRIDE_LENGTH=TRUE
 +/COMPUTE_CYCLE_TIME=FALSE
 +/COMPUTE_STEP_LENGTH=FALSE
 +/COMPUTE_STEP_TIME=FALSE
 +/COMPUTE_STANCE_TIME=FALSE
 +/COMPUTE_SWING_TIME=FALSE
 +/COMPUTE_STEPS_PER_MINUTE=FALSE
 +/COMPUTE_STRIDES_PER_MINUTE=FALSE
 +/COMPUTE_DOUBLE_LIMB_SUPPORT_TIME=FALSE
 +/COMPUTE_RIGHT_INITIAL_DOUBLE_LIMB_SUPPORT_TIME=FALSE
 +/COMPUTE_RIGHT_TERMINAL_DOUBLE_LIMB_SUPPORT_TIME=FALSE
 +! /COMPUTE_FLIGHT_TIME=FALSE
 +/TREADMILL_SPEED=1.25
 +/LEFT_TREADMILL_SPEED=1.25
 +/TREADMILL_DIRECTION=UNIT_VECTOR(0,1,0)
 +;
 +</code>
 +
 +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.
 +
 +{{:visual3d:documentation:pipeline:metric_commands:temporalitem.png?400|}}
 +
 +Fill out the dialog box as so:
 +
 +{{:visual3d:documentation:pipeline:metric_commands:temporaldialog.png?500|}}
 +
 +Click done. You should now see a bar chart comparing the left and right step length for your trial.
 +
 +{{:visual3d:documentation:pipeline:metric_commands:tempgraph_.png?550|}}
 ===== Multisubject Support ===== ===== Multisubject Support =====
  
visual3d/documentation/pipeline/metric_commands/metric_compute_temporal_distance.1758651168.txt.gz · Last modified: 2025/09/23 18:12 by wikisysop