def create_pinhole_camera(height, width):
    """
    Creates a pinhole camera according to height and width, assuming the principal point is in the center of the image
    """
    cx = (width - 1) / 2
    cy = (height - 1) / 2
    f = max(cx, cy)
    return f, cx, cy