Joint Depth and Defocus Estimation From a Single Image Using Physical Consistency