Hello @alpi,
In the general case where the principal points don’t have the same image coordinates in the left and right images, the distance Z is calculated as follows: Z = B \cdot f / ((x - c_x) - (x' - c_x')) where c_x and c_x' are the position of the principal point along the x-axis in the left and right images respectively.