Closed cxy1997 closed 5 years ago
Are you experimenting with Argoverse 1.0 or 1.1 (see https://www.argoverse.org/data.html#download-link )? In version 1.1 we reduced the epipolar alignment error by half.
Hi @James-Hays, we are using Argoverse 1.1.
Hi @cxy1997, I'm looking at the documentation for initUndistortRectifyMap and it looks like you are computing a joint undistortion and rectification transform. That would be helpful for distorted imagery, but Argoverse imagery has already been undistorted, so that pixel remapping transform won't be right.
Hi @johnwlambert, I don't think that's the cause of the problem. I have set all distortion parameters to zero so they won't influence the transform.
@cxy1997 Can you please check if the T you computed in line 3 in your code snippet is correct? I think it should be T_r - R * T_l
@cxy1997 Got it, sounds reasonable then if distortion coefficients are set to zero.
@dikpalargo I'm also concerned about the transformation @cxy1997 calculated between camera frames. We provide a transformation from the egovehicle frame (center of back axle) to the camera coordinate frame cam_SE3_egovehicle
that will take
cam_pt = cam_SE3_egovehicle * p_egovehicle
I would expect to do something like
camL_SE3_egovehicle.dot(inv(camR_SE3_egovehicle ))
to get Right->Left transformation
I would expect something like:
Hi @johnwlambert, great suggestion!
I recalculated R
and T
with
extrinsic = np.dot(calibR.extrinsic, np.linalg.inv(calibL.extrinsic))
R = extrinsic[:3, :3]
T = extrinsic[:3, 3]
since cv2.stereoRectify()
needs Left -> Right transformation matrix
The stereo images are aligned now
Thanks so much!
No problem @cxy1997, let me know if you run into any other difficulties with the data or API code.
Hi @johnwlambert, have all of the datasets for 1.1 been updated? The sequences in the first folder (train1) are different between 1.0 and 1.1. For the rest of the training folders, the sequences are the same, and the stereo calibrations appear to be as well. Thanks!
Hi @lizolson1, many of the logs in Argoverse1.1 are updated. Some have updated labels and some have updated stereo calibration, and the logs in train and val are randomly reselected. We recommend to use Argoverse 1.1 and not 1.0. Sorry for the inconvenience!
Thank you @alliecc!!
Hi, I found that the stereo images in Argoverse are slightly misaligned.
I tried to rectify them with
The rectified images are still misaligned.
Have you tried to rectify the images? I'm not sure if my code is wrong or if the calibration parameters are incorrect. Thanks a lot!