def reset_orient(imageobj, affine):
    """ Reset to the original scanner space

    :param imageobj:
    :param affine:
    :return:
    """
    imageobj.set_qform(affine)
    imageobj.set_sform(affine)
    imageobj.header['sform_code'] = 0
    imageobj.header['qform_code'] = 1
    imageobj._affine = affine
