Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/tracking_private.h
| Show First 20 Lines • Show All 73 Lines • ▼ Show 20 Lines | |||||
| * Inverse of #tracking_get_marker_coords_for_tracking. | * Inverse of #tracking_get_marker_coords_for_tracking. | ||||
| */ | */ | ||||
| void tracking_set_marker_coords_from_tracking(int frame_width, | void tracking_set_marker_coords_from_tracking(int frame_width, | ||||
| int frame_height, | int frame_height, | ||||
| struct MovieTrackingMarker *marker, | struct MovieTrackingMarker *marker, | ||||
| const double search_pixel_x[5], | const double search_pixel_x[5], | ||||
| const double search_pixel_y[5]); | const double search_pixel_y[5]); | ||||
| /** | |||||
| * Convert the lens principal point (optical center) between normalized and pixel spaces. | |||||
| * | |||||
| * The normalized space stores principal point relative to the frame center which has normalized | |||||
| * princibal coordinate of (0, 0). The right top corder of the frame corresponds to a notmalized | |||||
| * principal coordinate of (1, 1), and the left bottom cornder corresponds to coordinate of | |||||
| * (-1, -1). | |||||
| * | |||||
| * The pixel space is measured in pixels, with the reference being the left bottom cornder of | |||||
| * the frame. | |||||
| */ | |||||
| void tracking_principal_point_normalized_to_pixel(const float principal_point_normalized[2], | |||||
| int frame_width, | |||||
| int frame_height, | |||||
| float r_principal_point_pixel[2]); | |||||
| void tracking_principal_point_pixel_to_normalized(const float principal_point_pixel[2], | |||||
| int frame_width, | |||||
| int frame_height, | |||||
| float r_principal_point_normalized[2]); | |||||
| /*********************** General purpose utility functions *************************/ | /*********************** General purpose utility functions *************************/ | ||||
| /** | /** | ||||
| * Place a disabled marker before or after specified ref_marker. | * Place a disabled marker before or after specified ref_marker. | ||||
| * | * | ||||
| * If before is truth, disabled marker is placed before reference | * If before is truth, disabled marker is placed before reference | ||||
| * one, and it's placed after it otherwise. | * one, and it's placed after it otherwise. | ||||
| * | * | ||||
| ▲ Show 20 Lines • Show All 84 Lines • Show Last 20 Lines | |||||