Performance of a finite-state machine implementation of iterative cluster labeling on desktop and mobile computing platforms