zed-sdk icon indicating copy to clipboard operation
zed-sdk copied to clipboard

Is the rgb image returned by the pyzed API with distortion?

Open JimXu1989 opened this issue 3 years ago • 3 comments

Preliminary Checks

  • [X] This issue is not a duplicate. Before opening a new issue, please search existing issues.
  • [X] This issue is not a question, bug report, or anything other than a feature request directly related to this project.

Proposal

I want to make sure wether the rgb image return by pyzed have distortion or not? If has distortion, how to diminish it? And is the 3d point map returned by pyzed API align to the image with distortion?

Use-Case

I want to calculate the radius of a round wood board accuratly, due to the 3d points of the edge is not stable. I calculate the fitted plane of the wood board first, then I project the pixel coordinate of the wood board edge back to the fitted plane. While, the radius value I got always bigger than real radius. The same thing happen when I calculate the distance of two points, which both lay on the board.

Thanks

JimXu1989 avatar Nov 27 '21 07:11 JimXu1989

Hi @JimXu1989,

When retrieving your image via the API, you can choose whether to retrieve the sl.VIEW.LEFT_UNRECTIFIED or sl.VIEW.RECTIFIED (here is the corresponding doc : sl.VIEW and retrieve_image) If you don't want "distortions" in your image, you will need to retrieve the sl.VIEW.LEFT

qt-truong avatar Nov 30 '21 09:11 qt-truong

Hi @JimXu1989,

When retrieving your image via the API, you can choose whether to retrieve the sl.VIEW.LEFT_UNRECTIFIED or sl.VIEW.RECTIFIED (here is the corresponding doc : sl.VIEW and retrieve_image) If you don't want "distortions" in your image, you will need to retrieve the sl.VIEW.LEFT

Thanks, so the example provide by stereolab, which use sl.VIEW.LEFT, already return left images without distortions, am I right?

JimXu1989 avatar Dec 01 '21 08:12 JimXu1989

@JimXu1989 yes exactly

qt-truong avatar Dec 01 '21 09:12 qt-truong