Skip to content

Issue with squeeze image #1036

@borongyuan

Description

@borongyuan

Hi, I'm trying to solve the FOV issue as mentioned in #1034 (comment).
I've tested the usage of alphaScaling. The projection matrix can be calculated by cv::getOptimalNewCameraMatrix() correctly. But these data and images don't seem to work with rtabmap. I'm still looking for the reason, but the most likely reason is that using alphaScaling makes the image squeeze. That is to say, for the camera matrix calculated by cv::getOptimalNewCameraMatrix(), fx≠fy.
Here are the parameters I get.
left: fx=329.156006 fy=474.943451 cx=613.588454 cy=393.230591 baseline=0.075324
Here are the rectified left and right images (alpha=0.0). I put a coke in front of the camera, so you can see the squeeze.
2023-05-23 13-13-16屏幕截图
2023-05-23 13-13-35屏幕截图

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions