I can only describe the general idea. I can not tell you exactly how they solve it mathematically.
if I only have images I_r and I_m and not the pose translation, how is the cost volume estimated?
You know that the cost volume lies in a space between depth e_max, e_min, and width u and height v.
Now you take every small "cube" in this cuboid of ...