Source: https://www-l2ti.univ-paris13.fr/~dauphin/IM/td_tp_tin_ir.pdf