-
Notifications
You must be signed in to change notification settings - Fork 25
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
ROS2 rectified images don't seem to have the correct intrinsic values #131
Comments
Unfortunately this is hard to test for me, because I don't have a working ROS setup at the moment and my colleague who usually does the ROS topics is on vacation. I will try to answer some of your questions theoretically for now.
Yes, that is correct.
You probably have binning or an AOI enabled? It is expected and according to the documentation of sensor_msgs/CameraInfo that the resolution (as well as the projection matrices) are always the full one without binning or AOI. Those are specified separately in the The actual projection matrices to use for a specific image are then computed by
The code filling in the info is in |
Thanks for the quick response, @saierd. I currently have the binning set to as low as I think I can. Is there a specific setting in NXView for AOI? The CameraInfo shows no ROI change or binning. Below is the camera info for one of the rectified streams.
When looking at the camera settings json that I am loading in, I don't see anything in particular in the camera settings that specifies the AOI of the 580x364 that I've been seeing. For both left and right the current settings are:
|
Hi! I just found what is causing my issue. We were dropping the stereo matching volume scale down to help with frame rate. Reading the tool tip it seems that the rectified image is down sampled for the stereo matching, which make sense from a scaling/speed point of view. It seems that the returned rectified image is this down sampled image. Is there anyway to return the original rectified image rather than this downsampled version so the camera info properly matches? Or can the camera info be set to match the downsampled rectified image? Thank you |
Ah that makes sense. Scaling scales the rectified images during rectification already. That's how it reduces the data. This information is missing from the Getting the full size image is possible in the NxLib API by rectifying twice, but not so easy in ROS, since each |
Hi,
I'm using the ROS2 version of the driver for an N36 Kit IR. I've noticed that the rectified image topics have a camera info that has default values for all the camera info variables except for the P matrix, but it seems that even the intrinsic values for the P matrix are incorrect. When used for target detection the poses are significantly off in terms of distance. I did some more experimenting and pulled off images using the built in ROS2 image viewer and it seems that the width and height of the rectified images are downsampled images of
580x364 which differs from the camera info that says it's 1935x1215.
I rerun my own intrinsic calibration on these downsampled images and found that I get a intrinsics calibration that is accurate enough for target pose detection. Is there something I'm doing that is causing this downsampling or wrong camera info? Also can you confirm that the pointclouds coming from the driver are using the rectified left sensor as the origin?
Thank You!
The text was updated successfully, but these errors were encountered: