Tracking: Specify image image for (un)distortion model
Allows to support distortion models which needs to know actual image dimensions to apply or inverse camera intrinsics.
This commit is contained in:
@@ -4694,7 +4694,7 @@ static void followtrack_evaluate(bConstraint *con, bConstraintOb *cob, ListBase
|
||||
pos[0] *= width;
|
||||
pos[1] *= height;
|
||||
|
||||
BKE_tracking_undistort_v2(tracking, pos, pos);
|
||||
BKE_tracking_undistort_v2(tracking, width, height, pos, pos);
|
||||
|
||||
/* Normalize pixel coordinates back. */
|
||||
pos[0] /= width;
|
||||
|
||||
Reference in New Issue
Block a user