OpenCV2OpenGL icon indicating copy to clipboard operation
OpenCV2OpenGL copied to clipboard

Typo in "Converting OpenCV cameras to OpenGL cameras." tutorial page?

Open s-trinh opened this issue 1 year ago • 0 comments

Hello, Thanks for providing your tutorials and code in open access.

There is maybe a small typo (negative sign in the tutorial page?) between:

  • the code: https://github.com/amy-tabb/OpenCV2OpenGL/blob/9a1190d2fcda3d80ea8354bd475022676eb2fb61/Example1/src/OpenCV2OpenGL1.cpp#L1000-L1001
  • the tutorial: image

Also, when looking quickly at the following code (https://github.com/DLR-RM/3DObjectTracking/blob/35c26c4c6582f4e9ea12b4ad285c7f760f64c588/ICG/src/renderer.cpp#L257-L264)

Assuming I made no mistake gives:

image

Assuming I made no mistake, using your tutorial and without the "minus sign" gives:

image

I am wondering where could the following discrepancies could come from?

  • (1,1) about the minus sign
  • (1,2) about the sign

Maybe a different convention related to the Y-axis pointing upward/downward? The 0.5 should come from about using the top-left or centered pixel coordinates.

Thanks.

s-trinh avatar Jul 17 '24 13:07 s-trinh