SEMI-GLOBAL MATCHING WITH SELF-ADJUSTING PENALTIES