You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
May i know the reason "d_thresh" calculation is not scaled with the birds eye view height and width where points and all re scaled with height and width of birds eye view ?
In plot_lines_between_nodes distance between the points is calculated. This distance is of the original warped points. There is no scaling on the points. This is why no scaling on the d_thresh either.
In general I agree this code could be made more straight forward by refactoring how scaling is applying. I think it is best to apply when building the transformation matrix once and rather than how it is right now where it is applied when building the bird image and when plotting points on it.
May i know the reason "d_thresh" calculation is not scaled with the birds eye view height and width where points and all re scaled with height and width of birds eye view ?
d_thresh = np.sqrt(
(warped_pt[0][0] - warped_pt[1][0]) ** 2
+ (warped_pt[0][1] - warped_pt[1][1]) ** 2
)
warped_pt_scaled = [int(warped_pt[0] * scale_w), int(warped_pt[1] * scale_h)]
The text was updated successfully, but these errors were encountered: