Source: https://www.tdx.cat/bitstream/handle/10803/668111/MCV_TESIS.pdf