visual3d:documentation:pipeline:signal_commands:cross_correlation
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
visual3d:documentation:pipeline:signal_commands:cross_correlation [2024/07/17 15:11] – sgranger | visual3d:documentation:pipeline:signal_commands:cross_correlation [2024/11/15 19:00] (current) – [RESULT] wikisysop | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== | + | ====== |
- | \\ | + | The Cross_Correlation command can be used to determine if there is a relationship between two signals when one is shifted relative to the other. This command can also be used to calculate the self-similarity of a signal with a time-delayed version of itself. In this case the command calculates the signal' |
- | + | More about calculating cross-correlations can be found on [[https:// | |
- | The Cross_Correlation command can be used to determine if there is a relationship between two signals when one is shifted relative to the other. | + | |
- | + | ||
- | More about calculating cross correlations can be found [[http:// | + | |
===== Cross_Correlation ===== | ===== Cross_Correlation ===== | ||
- | The **Cross_Correlation** command | + | The **Cross_Correlation** command |
- | **Cross_Correlation** | + | < |
+ | Cross_Correlation | ||
! / | ! / | ||
/ | / | ||
Line 28: | Line 26: | ||
! / | ! / | ||
! / | ! / | ||
- | **;** | + | ; |
+ | </ | ||
{{: | {{: | ||
===== Parameters ===== | ===== Parameters ===== | ||
- | ==== MAX_DELAY ==== | + | Understand the parameters of the Cross_Correlation command. |
- | The **MAX_DELAY** indicates the number of frames the signal will be shifted to determine the correlation. | + | ==== SIGNAL1 ==== |
- | The number of frames in the resulting | + | The / |
- | MAX_DELAY may also be considered as the " | + | ==== SIGNAL2 ==== |
- | A delay of 10 will result in 21 values (-10 to 10). A result at -10 will indicate that Signal ONE was shifted -10 frames relative to Signal TWO. A result at 10 will indicate that Signal ONE was shifted +10 frames relative to Signal TWO. | + | Similarly, the / |
- | A MAX_DELAY that is small will likely be inadequate to display the correlation of two signals. Selecting MAX_DELAY to have have the length of the two signals will cover all possible correlations. | + | ==== RESULT ==== |
- | To further review the shift between the two signals, an example script | + | The / |
+ | * The result' | ||
+ | * The result' | ||
- | ==== DATA_WRAP | + | ==== MAX_DELAY |
- | Data Wrapping | + | The /MAX_DELAY parameter |
- | With no Data Wrap and a MAX_DELAY of half the length | + | The size of the resulting |
- | With Data Wrap, all frames of the resulting signal | + | Setting |
+ | |||
+ | ==== DATA_WRAP ==== | ||
- | \\ | + | The /DATA_WRAP parameter is a binary flag indicating whether the signal should be considered to loop. |
+ | With no Data Wrap and a MAX_DELAY of half the length of the signal, the first and last frames of the resulting signal will only be comparing half the signal. With Data Wrap, all frames of the resulting signal will be a correlation resulting from comparing all frames of the two signals. | ||
- | ===== Example: | + | ===== Example: |
- | If you want just the frame offset with the highest correlation, | + | If you want just the frame offset with the highest correlation, |
< | < |
visual3d/documentation/pipeline/signal_commands/cross_correlation.1721229089.txt.gz · Last modified: 2024/07/17 15:11 by sgranger