-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question about the calib in bev_transformer.py #31
Comments
I think it is fine, it is the basic formula of perspective projection: tan(fov/2)=cu/f; where f is the focal length and cu is the range between the origin_x coordinate and the center_x of the image. In the attached line we try to find a similar triangle in which the tan(fov/2)= X/self.z_max. |
I have a question, as far as I know calib is a 3x3 matrix with 2 dimensions, but in this line of code calib is a 3-dimensional matrix |
The first dimension accounts for the batch, so a calibration matrix per image in the batch.
…________________________________
From: Thang1703hrsh ***@***.***>
Sent: 15 June 2023 08:49
To: avishkarsaha/translating-images-into-maps ***@***.***>
Cc: Subscribed ***@***.***>
Subject: Re: [avishkarsaha/translating-images-into-maps] Question about the calib in bev_transformer.py (Issue #31)
I have a question, as far as I know calib is a 3x3 matrix with 2 dimensions, but in this line of code calib is a 3-dimensional matrix f, cu = calib[:, 0, 0], calib[ :, 0, 2]
—
Reply to this email directly, view it on GitHub<#31 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AOHMZSIG6DAD4BTUVWTNLLDXLK5BTANCNFSM6AAAAAAW4XVAZ4>.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
So what is the calib size here, I think it's still 3x3, so when I run to that line I get the error |
Hi, thanks for your great work!
When I read your code, I am confused about the use of calib in class
sample_polar2cartin
in bev_transformer.py.translating-images-into-maps/src/model/bev_transform.py
Line 419 in bff9351
Accoding to the meaning of intrinsics of camera, I think this should be
x_zmax = self.z_max / f * (u_max - cu)
So that we can get the maximum of X when Z is z_max.
Am I wrong? Could you please check it or let me know where my thoughts are incorrect?
Thanks in advance
The text was updated successfully, but these errors were encountered: