@ahojnnes I haven't used Cython in the past, so apart from the Cython docs, can you point some good examples in skimage codebase that are similar to the case like above in which I have to integrate a Cython loop with python code.