Blender
V3.3
|
#include "MEM_guardedalloc.h"
#include "DNA_movieclip_types.h"
#include "BLI_math.h"
#include "BLI_utildefines.h"
#include "BKE_tracking.h"
#include "libmv-capi.h"
Go to the source code of this file.
Typedefs | |
typedef double | Vec2[2] |
Functions | |
static int | point_markers_correspondences_on_both_image (MovieTrackingPlaneTrack *plane_track, int frame1, int frame2, Vec2 **r_x1, Vec2 **r_x2) |
static void | track_plane_from_existing_motion (MovieTrackingPlaneTrack *plane_track, int start_frame, int direction, bool retrack) |
void | BKE_tracking_track_plane_from_existing_motion (MovieTrackingPlaneTrack *plane_track, int start_frame) |
static MovieTrackingPlaneMarker * | find_plane_keyframe (MovieTrackingPlaneTrack *plane_track, int start_frame, int direction) |
void | BKE_tracking_retrack_plane_from_existing_motion_at_segment (MovieTrackingPlaneTrack *plane_track, int start_frame) |
BLI_INLINE void | float_corners_to_double (float corners[4][2], double double_corners[4][2]) |
void | BKE_tracking_homography_between_two_quads (float reference_corners[4][2], float corners[4][2], float H[3][3]) |
This file contains implementation of plane tracker.
Definition in file tracking_plane_tracker.c.
typedef double Vec2[2] |
Definition at line 21 of file tracking_plane_tracker.c.
void BKE_tracking_homography_between_two_quads | ( | float | reference_corners[4][2], |
float | corners[4][2], | ||
float | H[3][3] | ||
) |
Definition at line 210 of file tracking_plane_tracker.c.
References copy_m3_m3d(), float_corners_to_double(), H, libmv_homography2DFromCorrespondencesEuc(), and x2.
Referenced by BKE_mask_point_parent_matrix_get(), blender::compositor::PlaneDistortWarpImageOperation::calculate_corners(), and draw_plane_marker_image().
void BKE_tracking_retrack_plane_from_existing_motion_at_segment | ( | MovieTrackingPlaneTrack * | plane_track, |
int | start_frame | ||
) |
Definition at line 179 of file tracking_plane_tracker.c.
References find_plane_keyframe(), MovieTrackingPlaneMarker::framenr, NULL, and track_plane_from_existing_motion().
Referenced by keyframe_set_flag().
void BKE_tracking_track_plane_from_existing_motion | ( | struct MovieTrackingPlaneTrack * | plane_track, |
int | start_frame | ||
) |
Definition at line 154 of file tracking_plane_tracker.c.
References track_plane_from_existing_motion().
Referenced by apply_mouse_slide(), BKE_autotrack_context_finish(), create_plane_track_tracks_exec(), join_tracks_exec(), keyframe_set_flag(), slide_plane_marker_update_homographies(), and special_aftertrans_update__movieclip().
|
static |
Definition at line 161 of file tracking_plane_tracker.c.
References BKE_tracking_plane_marker_get(), MovieTrackingPlaneMarker::flag, MovieTrackingPlaneTrack::markers, NULL, and PLANE_MARKER_TRACKED.
Referenced by BKE_tracking_retrack_plane_from_existing_motion_at_segment().
BLI_INLINE void float_corners_to_double | ( | float | corners[4][2], |
double | double_corners[4][2] | ||
) |
Definition at line 202 of file tracking_plane_tracker.c.
References copy_v2db_v2fl().
Referenced by BKE_tracking_homography_between_two_quads().
|
static |
Definition at line 23 of file tracking_plane_tracker.c.
References BKE_tracking_marker_get_exact(), MEM_mallocN, NULL, MovieTrackingPlaneTrack::point_tracks, MovieTrackingPlaneTrack::point_tracksnr, MovieTrackingMarker::pos, and x2.
Referenced by track_plane_from_existing_motion().
|
static |
Definition at line 55 of file tracking_plane_tracker.c.
References BKE_tracking_plane_marker_get(), BKE_tracking_plane_marker_get_exact(), BKE_tracking_plane_marker_insert(), copy_m3_m3d(), copy_v2_v2(), MovieTrackingPlaneMarker::corners, MovieTrackingPlaneMarker::flag, MovieTrackingPlaneTrack::flag, float(), MovieTrackingPlaneMarker::framenr, H, interp_v2_v2v2(), libmv_homography2DFromCorrespondencesEuc(), MEM_freeN, mul_v3_m3v3(), NULL, PLANE_MARKER_TRACKED, PLANE_TRACK_AUTOKEY, point_markers_correspondences_on_both_image(), and x2.
Referenced by BKE_tracking_retrack_plane_from_existing_motion_at_segment(), and BKE_tracking_track_plane_from_existing_motion().