Stereo rectification of uncalibrated and heterogeneous images