Program for calculating parallax based on SAD