What the principle of find_blobs in openmv?

is there any webpages about the principle of find_blobs in openmv?
any link address is ok, i want to know something about its math

Chapter 3

Our code used a scan line algorithm and was rewritten not to be recursive so that it doesn’t break the stack.