def generate_depth_map(faces, output_file, key_points=False):
    def _func(subplot, file, person_id, face, index):
        subplot.imshow(face.Z)

        if key_points == True:
            for name, point in face.key_points.iteritems():
                x, y = point
                subplot.plot(x, y, 'x', color='k')

    generate_base_map(faces, _func, output_file)
dataset/ETHPy150Open basilfx/Course-Face3D/face3d/utils.py/generate_depth_map/original