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