Jorx's "jrxEdgeEater" fake displacement script

An ambitious idea, I got thinking to how one could fake displacement in post.
Arise, edgeEater! Using MEL in Maya and Nuke for some processing, below is a demonstration of how it works. If needed I could translate it into Python.

"jrxEdgeEater" demo from Jordan Olson on Vimeo.