For our purposes, we are looking for a point in the RGB image (a chessboard), and we want to find the depth in the stereo depth image. Since depth-ai no longer automatically resized the depth image when calling "setDepthAlign()", I resized the stereo depth manually. However, I noticed that the field of view in the stereo depth was wider than in the RGB image. If the chessboard is near the edge of the RGB image, then the corresponding point near the edge of the resized stereo depth image is not on the chess board, and I get a very inaccurate depth reading for the location of the chess board.
How would you recommend finding the depth of a specific (x, y) pixel in the RGB image?