The MontiVision Motion Direction filter determines the global motion direction using motion templates algorithm. If the luminance change of a pixel from the last to the current image is higher than the specified threshold, motion is detected for this pixel. If more than a defined number of pixels show motion, the motion flag is set to indicate motion. The filter uses a defined number of successive frames for motion detection. The filter determines the direction of the detected motion in degrees (0 to 360).
| File: | MotionDirection.ax |
| CLSID: | CLSID_MVMotionDirection |
Supported Interfaces
Supported COM Events
The filter supports following events through the IMVFilterEvents interface. Look at the filter events page for more information.
| Event |
Value |
Description |
| MV_ALGORITHM_START_EVENT |
0 |
A filter starts processing a video frame or sample. |
| MV_ALGORITHM_END_EVENT |
1 |
A filter finishes processing a video frame or sample. |
Supported I/O Pins
| I/O Pin | Corresponding method | Discription |
|
Motion Out |
IMVMotionDirection::GetMotion | Returns the state of the motion detection flag: TRUE if motion is detected and FALSE otherwise. |
|
Direction |
IMVMotionDirection::GetMotionDirection | Returns the direction of the motion in degrees (0 to 360). 0° is equivalent to the 3 o'clock position. |
MV Motion Direction Property Page
Uses the IMVMotionDirection interface to setup the filter.
| Draw motion direction onto video | If enabled, the global motion direction and the sub directions are drawn onto the video as arrows. |
| Draw motion areas onto video | If enabled, the motion within the video is visualised using the specified colour. |
| Minimum pixel luminance difference | If a pixel luminance change is higher than this threshold, motion is detected for this pixel. |
| Minimum number of changed pixels in percent | If the number of changed pixels in percent is higher than this value, motion is detected for the video frame. |