Sorry, I was looking at the ndimage functions, but I see they are used too.