I\'m trying to implement an inpainting algorithm from a research paper by Criminisi (https://www.microsoft.com/en-us/research/wp-content/uploads/2016/02/tr-2003-84.pdf). So