automatically generate depth map from image