visual3d:documentation:pipeline:event_commands:event_onset
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_onset [2024/06/19 13:59] – created sgranger | visual3d:documentation:pipeline:event_commands:event_onset [2025/04/28 19:47] (current) – [Dialog] wikisysop | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | Create an Event Label using two Threshold crossings and a local minimum. | + | ====== |
- | Create | + | ===== Overview ===== |
+ | The **Event_Onset** command is used to detect and label an event when a specified signal crosses | ||
- | | + | The command creates an event label at either the last minimum value before a threshold crossing, or at the last baseline threshold. THe closest event is set as the ONSET event. Some key details are as follows: |
- | * The baseline crossing is a low threshold value (or metric) which is typically the point at which a velocity signal(for example) just starts moving. | + | |
+ | * The baseline crossing is a low threshold value (or metric) which is typically the point at which a velocity signal (for example) just starts moving. | ||
* The last local minimum before the threshold crossing (higher threshold). | * The last local minimum before the threshold crossing (higher threshold). | ||
* The event from the baseline crossing and local minimum that is closest to the higher threshold crossing is set as the ONSET Event. | * The event from the baseline crossing and local minimum that is closest to the higher threshold crossing is set as the ONSET Event. | ||
+ | * If multiple components are chosen (X Y and Z), the command will look for when any component passes the threshold and when any component reaches the baseline or a local minimum. | ||
- | \\ | + | ===== Pipeline Command ===== |
- | If multiple components are chosen (X Y and Z), the command | + | The command |
+ | < | ||
+ | Event_Onset | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | / | ||
+ | ! / | ||
+ | ! /BASELINE=0 | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ; | ||
+ | </ | ||
- | |{{Event_Onset.jpg}} | + | ===== Command Parameters |
+ | The following table shows the command parameters and descriptions: | ||
- | \\ | + | |**Parameter** |
+ | |**!/ | ||
+ | |**!/ | ||
+ | |**!/ | ||
+ | |**/ | ||
+ | |**!/ | ||
+ | |**/ | ||
+ | |**!/ | ||
+ | |**!/ | ||
+ | |**!/ | ||
+ | |**!/ | ||
+ | |**!/ | ||
+ | |**!/ | ||
+ | |**!/ | ||
+ | ===== 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. | ||
+ | {{: | ||
- | ---- | + | * **Event Name**: Name for the new event that will be created. |
+ | * **X, Y, Z Checkboxes**: | ||
+ | * **Threshold**: | ||
+ | * **Threshold Instance**: Defines how many threshold crossings to detect. | ||
+ | * **Baseline**: | ||
+ | * **Frame Offset**: Number of frames to shift event. | ||
+ | * **Frame Window**: Sets a window of frames to search for threshold crossing. | ||
+ | * **Label on Ascent/ | ||
+ | * Find Event within Range - limits for threshold crossings. | ||
+ | ===== Examples ===== | ||
+ | The following examples will go through the use of the Event_Onset command in the Visual3D application. | ||
- | ===== Example 1 ===== | + | ==== Example 1 ==== |
+ | This example identifies movement onset based on the speed of the hand. It detects the onset of hand movement (labeled as " | ||
- | Identifies movement onset based on the speed of the hand. | + | < |
+ | Event_Onset | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | ; | ||
+ | </ | ||
- | |< | + | **Note**: Both the Threshold |
- | \\ | + | ==== Example 2 ==== |
- | **Note that both the Threshold | + | The following command is designed to automatically detect |
- | ===== Example 2 ===== | + | < |
+ | Event_Onset | ||
+ | / | ||
+ | / | ||
+ | !/ | ||
+ | /EVENT_NAME= SCOTT2 | ||
+ | !/SELECT_X= TRUE | ||
+ | !/SELECT_Y= FALSE | ||
+ | !/SELECT_Z= FALSE | ||
+ | /THRESHOLD= 25 | ||
+ | !/ | ||
+ | !/BASELINE= 0 | ||
+ | !/ | ||
+ | /ASCENDING= TRUE | ||
+ | !/ | ||
+ | !/ | ||
+ | !/ | ||
+ | ; | ||
+ | </ | ||
- | |\\ \\ \\ < | + | **Result:** |
- | \\ | + | Visual3D will find when the signal crosses the threshold (25N) and look backwards in time (along the light blue) and find **EITHER**: |
+ | - When the signal reaches the baseline of 0 N (this is indicated by the first instance of SCOTT2. | ||
+ | - When the signal reaches the local minima (this is indicated by the second instance of SCOTT2. | ||
- | + | {{:EventOnset_Scott2_Graph.jpg?}} | |
- | |\\ **Result: | + | |
+ | ===== Notes ===== | ||
+ | * The /Ascending and /Descending parameters determine whether the event is placed at an upward or downward threshold crossing. | ||
+ | * The / | ||
+ | * The /Baseline is useful when detecting minima or maxima, ensuring the event is placed correctly. | ||
visual3d/documentation/pipeline/event_commands/event_onset.1718805547.txt.gz · Last modified: 2024/06/19 13:59 by sgranger