Divide scanned pattern in several closed area, store as intermediate data