Matrix method for finding sets of contiguous non-zero elements in a 2-dimensional array - II

Abstract We present a quick method of finding sets of contiguous non-zero elements in a two-dimensional array.