A Solution To The Problem Of Automatic Depth Matching