motion ¶
MotionVectors ¶
MotionVectors()
Class for storing and managing motion vectors for a video clip.
Source code
29 30 31 32 33 |
|
analysis_data instance-attribute
¶
Dictionary containing motion vector analysis data.
temporal_vectors instance-attribute
¶
temporal_vectors: dict[MVDirection, dict[int, VideoNode]]
Dictionary containing both backward and forward motion vectors.
clear ¶
clear() -> None
Clear all stored motion vectors and reset the instance.
Source code
69 70 71 72 73 74 75 76 77 |
|
get_mv ¶
get_mv(direction: MVDirection, delta: int) -> VideoNode
Retrieve a specific motion vector.
Parameters:
-
direction
¶MVDirection
) –Direction of the motion vector (forward or backward).
-
delta
¶int
) –Frame distance for the motion vector.
Returns:
-
VideoNode
–The requested motion vector clip.
Source code
46 47 48 49 50 51 52 53 54 55 56 |
|
set_mv ¶
set_mv(direction: MVDirection, delta: int, vector: VideoNode) -> None
Store a motion vector.
Parameters:
-
direction
¶MVDirection
) –Direction of the motion vector (forward or backward).
-
delta
¶int
) –Frame distance for the motion vector.
-
vect
¶Motion vector clip to store.
Source code
58 59 60 61 62 63 64 65 66 67 |
|