The MATLAB models for the paper:

Hu B, Niebur E (2017) A recurrent neural model for proto-object based contour integration and figure-ground segregation. J Comput Neurosci 43:227-242

http://dx.doi.org/10.1007/s10827-017-0659-3

are available at the authors github repository:

https://github.com/brianhhu/Contour_BOS