Nearly a quarter of a century has passed since Ohzawa and colleagues proposed a model of how cortical neurons in primary visual cortex might support depth discrimination. Here is a demo of how it works, written in Julia.

Take a look at the notebook here.