Closed YaroslavShchekaturov closed 2 years ago
I am not sure but I believe because that line of code changes the direction of the camera from up and back axis to down and front.
Answer from @SrinjaySarkar is correct. Btw, next time you can create a permanent link to a code snippet so that it's easier to see which part you have question.
I suppose that the answer is the following: when you multiply by -1 you change to the opencv convention to opengl convention where z points back. w2c are in opencv where z points to the fron so everything is correct when we calculate fars/nears.
Dear kwea123, Thank you for your hard work!
could you please clarify why do you multiply poses by -1 but dont do it for w2c matrix and after that you use w2c for nears/fars estimation?