Specialised Global Methods For Binocular And Trinocular Stereo Matching