Python implementation of the Image Foresting Transform [IFT]