Do you have any idea how [CellProfiler's implementation](https://svn.broadinstitute.org/CellProfiler/trunk/CellProfiler/cellprofiler/cpmath/filter.py) compares?  (You'll have to search for the `roberts` function in that link.)