def getcamera_target(minextents, maxextents):
    """
    Compute the center of the DTM in pixel space

    Parameters
    -----------
    minextents      (tuple) (xmin, ymin, zmin)
    maxextents      (tuple) (xmax, ymax, zmax)

    Returns
    --------
    center          (tuple) (xcenter, ycenter, zcenter)
    """
    xcenter = (maxextents[0] - minextents[0]) / 2.0
    ycenter = (maxextents[1] - minextents[1]) / 2.0
    zcenter = (maxextents[2] - minextents[2]) / 2.0

    return xcenter, ycenter, zcenter