Kalentev, O., Rai, A., Kemnitz, S., & Schneider, R. (2011). Connected component labeling on a 2D grid using CUDA. Journal of Parallel and Distributed Computing, 71(4), 615-620. doi:10.1016/j.jpdc.2010.10.012.